openj9
openj9 copied to clipboard
AArch64 JIT changes for virtual thread support
- Adjust J9VMThread ownedMonitorCount counters for ARM64 monenter/monexit
- Adjust J9VMThread callOutCount counters around ARM64 direct JNI dispatch
This PR is only in draft state until PR #15552 is merged. At that point this PR will be rebased to remove the FrontEnd changes that are needed to test it.
In the meantime, please review this PR @knn-k . Functional testing including the VirtualThreadTest with JIT enabled succeeded.
Essentially, JNI callout counter needs to be incremented on every JNI callout that builds a frame and decremented when it returns. For every monitor handled inline (not via a helper) the monitor count needs to incremented on monenter and decremented on monexit.
Jenkins test sanity alinux64 jdk17,jdk19
Jenkins test sanity alinux64 jdk17,jdk19
Jenkins test sanity amac jdk17,jdk19
Internal testing of all JDK 17 and 19 sanity functional, system, and openjdk testing passed on both Linux and macOS. Un-WIPing this PR.
@knn-k : please review and merge.