From 127bdb78575bf8ef3366dc680106312fa491f07e Mon Sep 17 00:00:00 2001 From: Theresa Mammarella Date: Wed, 21 Aug 2024 10:58:02 -0400 Subject: [PATCH] Correct equality check with new scc rom class flag Signed-off-by: Theresa Mammarella --- runtime/bcutil/ROMClassBuilder.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/bcutil/ROMClassBuilder.cpp b/runtime/bcutil/ROMClassBuilder.cpp index 3d83f341f15..5a6de7c597e 100644 --- a/runtime/bcutil/ROMClassBuilder.cpp +++ b/runtime/bcutil/ROMClassBuilder.cpp @@ -1489,6 +1489,10 @@ ROMClassBuilder::compareROMClassForEquality( { bool ret = false; + if (romClassIsShared) { + extraModifiers |= J9AccClassIsStoredInSCC; + } + #if JAVA_SPEC_VERSION < 21 if (context->isLambdaClass()) { /*