Skip to content

Commit 69c0709

Browse files
authored
Merge pull request #19817 from theresa-m/primitive_1
Remove J9ROMCLASS_IS_PRIMITIVE_VALUE_TYPE and J9AccPrimitiveValueType
2 parents 57207af + 40bf93e commit 69c0709

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

runtime/oti/j9javaaccessflags.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
#define J9AccInterface 0x00000200 /* class */
5555
#define J9AccGetterMethod 0x00000200 /* method */
5656
#define J9AccAbstract 0x00000400 /* class method */
57-
#define J9AccPrimitiveValueType 0x00000800 /* class(Valhalla) */
5857
#define J9AccStrict 0x00000800 /* method */
5958
#define J9AccSynthetic 0x00001000 /* class method field */
6059
#define J9AccAnnotation 0x00002000 /* class */

runtime/oti/j9modifiers_api.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@
8787
#define J9ROMCLASS_IS_VALUE(romClass) FALSE
8888
#endif /* J9VM_OPT_VALHALLA_VALUE_TYPES */
8989

90-
#if defined(J9VM_OPT_VALHALLA_FLATTENABLE_VALUE_TYPES)
91-
#define J9ROMCLASS_IS_PRIMITIVE_VALUE_TYPE(romClass) _J9ROMCLASS_SUNMODIFIER_IS_SET((romClass), J9AccPrimitiveValueType)
92-
#else /* defined(J9VM_OPT_VALHALLA_FLATTENABLE_VALUE_TYPES) */
93-
#define J9ROMCLASS_IS_PRIMITIVE_VALUE_TYPE(romClass) FALSE
94-
#endif /* defined(J9VM_OPT_VALHALLA_FLATTENABLE_VALUE_TYPES) */
95-
9690
#define J9ROMMETHOD_IS_GETTER(romMethod) _J9ROMMETHOD_J9MODIFIER_IS_SET((romMethod), J9AccGetterMethod)
9791
#define J9ROMMETHOD_IS_FORWARDER(romMethod) _J9ROMMETHOD_J9MODIFIER_IS_SET((romMethod), J9AccForwarderMethod)
9892
#define J9ROMMETHOD_IS_EMPTY(romMethod) _J9ROMMETHOD_J9MODIFIER_IS_SET((romMethod), J9AccEmptyMethod)

runtime/vm/createramclass.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,13 +2310,8 @@ internalCreateRAMClassDone(J9VMThread *vmThread, J9ClassLoader *classLoader, J9C
23102310
}
23112311
}
23122312
#if defined(J9VM_OPT_VALHALLA_FLATTENABLE_VALUE_TYPES)
2313-
if (J9ROMCLASS_IS_PRIMITIVE_VALUE_TYPE(romClass)
2314-
|| J9_ARE_ALL_BITS_SET(classFlags, J9ClassAllowsInitialDefaultValue)
2315-
) {
2313+
if (J9_ARE_ALL_BITS_SET(classFlags, J9ClassAllowsInitialDefaultValue)) {
23162314
UDATA instanceSize = state->ramClass->totalInstanceSize;
2317-
if (J9ROMCLASS_IS_PRIMITIVE_VALUE_TYPE(romClass)) {
2318-
classFlags |= J9ClassIsPrimitiveValueType;
2319-
}
23202315
if ((instanceSize <= javaVM->valueFlatteningThreshold)
23212316
&& !J9ROMCLASS_IS_CONTENDED(romClass)
23222317
) {

0 commit comments

Comments
 (0)