Skip to content

Commit

Permalink
Merge pull request #18568 from cjjdespres/romclasswalk
Browse files Browse the repository at this point in the history
Visit certain unvisited ROMClass header slots
  • Loading branch information
babsingh authored Jan 10, 2024
2 parents f66dfa2 + af7e9df commit 0b4de99
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions runtime/util/romclasswalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,20 @@ void allSlotsInROMClassDo(J9ROMClass* romClass,
SLOT_CALLBACK(romClass, J9ROM_U32, romClass, invokeCacheCount);
#else /* defined(J9VM_OPT_OPENJDK_METHODHANDLE) */
SLOT_CALLBACK(romClass, J9ROM_U32, romClass, methodTypeCount);
SLOT_CALLBACK(romClass, J9ROM_U32, romClass, varHandleMethodTypeCount);
#endif /* defined(J9VM_OPT_OPENJDK_METHODHANDLE) */
SLOT_CALLBACK(romClass, J9ROM_U32, romClass, bsmCount);
SLOT_CALLBACK(romClass, J9ROM_U32, romClass, callSiteCount);
SLOT_CALLBACK(romClass, J9ROM_SRP, romClass, callSiteData);
SLOT_CALLBACK(romClass, J9ROM_U32, romClass, classFileSize);
SLOT_CALLBACK(romClass, J9ROM_U32, romClass, classFileCPCount);
SLOT_CALLBACK(romClass, J9ROM_U16, romClass, staticSplitMethodRefCount);
SLOT_CALLBACK(romClass, J9ROM_U16, romClass, specialSplitMethodRefCount);
SLOT_CALLBACK(romClass, J9ROM_SRP, romClass, staticSplitMethodRefIndexes);
SLOT_CALLBACK(romClass, J9ROM_SRP, romClass, specialSplitMethodRefIndexes);
#if defined(J9VM_OPT_METHOD_HANDLE)
SLOT_CALLBACK(romClass, J9ROM_SRP, romClass, varHandleMethodTypeLookupTable);
#endif /* defined(J9VM_OPT_METHOD_HANDLE) */

/* walk interfaces SRPs block */
srpCursor = J9ROMCLASS_INTERFACES(romClass);
Expand Down

0 comments on commit 0b4de99

Please sign in to comment.