From 588682794aaa382da237cfca2cbb77e7bdbdcf69 Mon Sep 17 00:00:00 2001 From: Matias Saavedra Silva Date: Mon, 23 Mar 2026 11:37:20 -0400 Subject: [PATCH] Vladimir comments --- src/hotspot/share/cds/aotClassInitializer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hotspot/share/cds/aotClassInitializer.cpp b/src/hotspot/share/cds/aotClassInitializer.cpp index b59c153f4ab..6b88ce6afdb 100644 --- a/src/hotspot/share/cds/aotClassInitializer.cpp +++ b/src/hotspot/share/cds/aotClassInitializer.cpp @@ -59,10 +59,10 @@ bool AOTClassInitializer::can_archive_initialized_mirror(InstanceKlass* ik) { return false; } -#ifndef PRODUCT +#ifdef ASSERT if (AOTInitTestClass == nullptr && ArchiveHeapTestClass == nullptr) { - // The above flags (in debug builds only) allow user code to be executed in assembly phase, - // strictly for testing purposes. If these flags are not set, no user code will be executed + // The above flags (in debug builds only) allow java code to be executed in assembly phase, + // strictly for testing purposes. If these flags are not set, no java code will be executed // in assembly phase. if (ik->class_loader() != nullptr && !ik->is_hidden()) { if (ik->is_interface() && !ik->interface_needs_clinit_execution_as_super()) { @@ -72,7 +72,7 @@ bool AOTClassInitializer::can_archive_initialized_mirror(InstanceKlass* ik) { } } } -#endif // PRODUCT +#endif // ASSERT // About "static field that may hold a different value" errors: //