Skip to content
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

Return JVMTI_ERROR_OPAQUE_FRAME from ForceEarlyReturn* and PopFrame #15710

Merged
merged 1 commit into from
Aug 16, 2022

Conversation

babsingh
Copy link
Contributor

@babsingh babsingh commented Aug 15, 2022

If the thread is a virtual thread, ForceEarlyReturn* and PopFrame JVMTI
functions should return JVMTI_ERROR_OPAQUE_FRAME.

Also, fixed the entry/exit tracepoints for ForceEarlyReturn* JVMTI functions.

isSameOrSuperClassOf is unable to handle NULL from the *_OR_NULL version.
Instead, use J9VMJAVALANGBASEVIRTUALTHREAD in IS_VIRTUAL_THREAD.

Ref: https://download.java.net/java/early_access/jdk19/docs/specs/jvmti.html

Signed-off-by: Babneet Singh sbabneet@ca.ibm.com

@babsingh babsingh force-pushed the loom_jvmti_2 branch 5 times, most recently from 9aeb703 to 9e151cd Compare August 15, 2022 20:12
@babsingh babsingh marked this pull request as ready for review August 15, 2022 20:35
@babsingh
Copy link
Contributor Author

@keithc-ca Can you help review this PR?

@keithc-ca keithc-ca self-assigned this Aug 15, 2022
runtime/oti/jvmtiInternal.h Outdated Show resolved Hide resolved
@babsingh babsingh force-pushed the loom_jvmti_2 branch 2 times, most recently from a8386b4 to f51ff18 Compare August 16, 2022 06:51
runtime/oti/j9.h Outdated Show resolved Hide resolved
If the thread is a virtual thread, ForceEarlyReturn* and PopFrame JVMTI
functions should return JVMTI_ERROR_OPAQUE_FRAME.

Also, fixed the entry/exit tracepoints for ForceEarlyReturn* JVMTI functions.

isSameOrSuperClassOf is unable to handle NULL from the *_OR_NULL version.
Instead, use J9VMJAVALANGBASEVIRTUALTHREAD in IS_VIRTUAL_THREAD.

Ref: https://download.java.net/java/early_access/jdk19/docs/specs/jvmti.html

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
@keithc-ca
Copy link
Contributor

jenkins test sanity amac jdk19

@keithc-ca keithc-ca merged commit a95344a into eclipse-openj9:master Aug 16, 2022
@babsingh babsingh mentioned this pull request Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants