Skip to content

Commit d1e0327

Browse files
Aditi Srinivas MAditi Srinivas M
authored andcommitted
Fix J9HasIdentity flag assignment
Set the J9HasIdentity flag only if the class is not a value class and not an interface.
1 parent 888f32f commit d1e0327

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/vm/createramclass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2406,8 +2406,8 @@ internalCreateRAMClassDone(J9VMThread *vmThread, J9ClassLoader *classLoader, J9C
24062406
}
24072407
#endif /* defined(J9VM_OPT_VALHALLA_FLATTENABLE_VALUE_TYPES) */
24082408
#endif /* defined(J9VM_OPT_VALHALLA_VALUE_TYPES) */
2409-
} else if (!(J9_IS_CLASSFILE_OR_ROMCLASS_VALUETYPE_VERSION(romClass) && J9ROMCLASS_IS_INTERFACE(romClass))) {
2410-
/* All classes before value type version are identity. */
2409+
} else if (!J9ROMCLASS_IS_VALUE(romClass) && !J9ROMCLASS_IS_INTERFACE(romClass)) {
2410+
/* All classes which are not value classes and are not interfaces are identity. */
24112411
classFlags |= J9ClassHasIdentity;
24122412
}
24132413
#if defined(J9VM_OPT_VALHALLA_FLATTENABLE_VALUE_TYPES)

0 commit comments

Comments
 (0)