Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update acquireVThreadInspector and enterVThreadTransitionCritical
VM is entered by the invocation of internalEnterVMFromJNI. VM is exited by the invocation of internalExitVMToJNI. VM is always entered before acquireVThreadInspector and enterVThreadTransitionCritical are invoked. In these functions, the goal can be achieved by just releasing and re-acquiring VM access. The new changes just release and re-acquire VM access instead of exiting and entering the VM. This has less overhead. Addresses: #18420 (comment) Signed-off-by: Babneet Singh <[email protected]>
- Loading branch information