From 4bef233a4af3bd06f8f17d70eda50ea45fb9c82c Mon Sep 17 00:00:00 2001 From: Coleen Phillimore Date: Tue, 31 Jan 2023 18:07:15 +0000 Subject: [PATCH] 8301549: Fix comment about ClassCircularityError Reviewed-by: lfoltan --- src/hotspot/share/classfile/systemDictionary.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/classfile/systemDictionary.cpp b/src/hotspot/share/classfile/systemDictionary.cpp index 2282a3ee835..4a3690c68b3 100644 --- a/src/hotspot/share/classfile/systemDictionary.cpp +++ b/src/hotspot/share/classfile/systemDictionary.cpp @@ -569,8 +569,9 @@ InstanceKlass* SystemDictionary::handle_parallel_loading(JavaThread* current, bool* throw_circularity_error) { PlaceholderEntry* oldprobe = PlaceholderTable::get_entry(name, loader_data); if (oldprobe != nullptr) { - // only need check_seen_thread once, not on each loop - // 6341374 java/lang/Instrument with -Xcomp + // -Xcomp calls load_signature_classes which might result in loading + // a class that's already in the process of loading, so we detect CCE here also. + // Only need check_seen_thread once, not on each loop if (oldprobe->check_seen_thread(current, PlaceholderTable::LOAD_INSTANCE)) { log_circularity_error(name, oldprobe); *throw_circularity_error = true;