forked from eclipse-openj9/openj9
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JDK11] Fix AccessControlException in resolveInvokeDynamic
MethodHandleResolver.resolveInvokeDynamic (linkage) relies upon MethodType.fromMethodDescriptorString to derive the MethodType from the method descriptor string. Enabling OJDK's MethodType.fromMethodDescriptorString in OpenJ9 JDK11 causes an AccessControlException, which makes it unsuitable for usage during linkage. resolveInvokeDynamic (linkage) can employ its own approach to derive the MethodType from the method descriptor string. To resolve the AccessControlException, a helper method is derived from OJ9's MethodType.fromMethodDescriptorString, and it is utilized in MethodHandleResolver. The helper also enables a Map based cache per ClassLoader in both implementations. Currently, the cache is only available in OJ9 MHs. Related: eclipse-openj9#14555 Signed-off-by: Babneet Singh <[email protected]>
- Loading branch information
Showing
2 changed files
with
116 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters