-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VarHandle MethodType lookup table not needed for OJDK MH #11580
Comments
fyi @DanHeidinga @fengxue-IS @tajila |
I am unsure what to do for https://github.com/eclipse-openj9/openj9/blob/master/runtime/compiler/optimizer/VarHandleTransformer.cpp#L295. That method is accessing the varhandlemethodtypelookuptable so I think some changes are necessary when ojdk method handles are enabled. Same for lookupVarHandleMethodTypeCacheIndex: https://github.com/eclipse-openj9/openj9/blob/master/runtime/codert_vm/cnathelp.cpp#L2496 |
The first link code should be never used with ojdk MH enabled, so you should be able to ifdef the code block with for second link, you don't need to do anything as the code is already ifdef with |
Yes, this is not used with ojdk MHs. We can safely ifdef out the entire body of |
J9RomClass.varHandleMethodTypeLookupTable is not used in the OJDK method handle implementation as varhandles are treated as method handles and use the invoke cache instead. Closes: eclipse-openj9#11580 Signed-off-by: Eric Yang <eric.yang@ibm.com>
VarHandle MethodType lookup table
is stored in theJ9ROMClass
.The code related to the
VarHandle MethodType lookup table
should be wrapped withJ9VM_OPT_METHOD_HANDLE
or an identical flag so that it stays disabled for OJDK MH.The code related to the
VarHandle MethodType lookup table
is mentioned in the following comments:The text was updated successfully, but these errors were encountered: