-
Notifications
You must be signed in to change notification settings - Fork 728
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
Add a walk state flag to skip methods with the JvmtiMountTransition annotation #17758
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -374,6 +374,8 @@ static const struct { \ | |||||||||||||||||||
|
||||||||||||||||||||
#define J9VM_VIRTUALTHREAD_ROOT_NODE_STATE ((I_32)0xBAADF00D) | ||||||||||||||||||||
|
||||||||||||||||||||
#define J9_IS_JVMTI_MOUNT_TRANSITION(method) \ | ||||||||||||||||||||
((NULL != (method)) && (J9_ARE_ANY_BITS_SET(getExtendedModifiersDataFromROMMethod(J9_ROM_METHOD_FROM_RAM_METHOD(method)), CFR_METHOD_EXT_JVMTIMOUNTTRANSITION_ANNOTATION))) | ||||||||||||||||||||
#if defined(OPENJ9_BUILD) | ||||||||||||||||||||
Comment on lines
+377
to
379
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a new line and wrap with
Suggested change
|
||||||||||||||||||||
#define J9_SHARED_CACHE_DEFAULT_BOOT_SHARING(vm) TRUE | ||||||||||||||||||||
#else /* defined(OPENJ9_BUILD) */ | ||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -401,6 +401,7 @@ extern "C" { | |
#define J9_STACKWALK_CACHE_METHODS 0x400 | ||
#define J9_STACKWALK_CACHE_MASK 0x700 | ||
#define J9_STACKWALK_SKIP_HIDDEN_FRAMES 0x800 | ||
#define J9_STACKWALK_SKIP_JVMTI_MOUNT_TRANSITION_FRAMES 0x1000 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Macro definitions don't need |
||
#define J9_STACKWALK_UNUSED_0x10000 0x10000 | ||
#define J9_STACKWALK_LINEAR 0x20000 | ||
#define J9_STACKWALK_VISIBLE_ONLY 0x40000 | ||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -481,6 +481,13 @@ UDATA walkFrame(J9StackWalkState * walkState) | |||||||||||||||||||||||||||||
return J9_STACKWALK_KEEP_ITERATING; | ||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
/* Skip methods with JvmtiMountTransition annotation */ | ||||||||||||||||||||||||||||||
if (J9_ARE_ALL_BITS_SET(walkState->flags, J9_STACKWALK_SKIP_JVMTI_MOUNT_TRANSITION_FRAMES) | ||||||||||||||||||||||||||||||
&& J9_IS_JVMTI_MOUNT_TRANSITION(walkState->method) | ||||||||||||||||||||||||||||||
) { | ||||||||||||||||||||||||||||||
return J9_STACKWALK_KEEP_ITERATING; | ||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||
Comment on lines
+484
to
+489
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To be consistent with #16654, the code changes in this PR should be wrapped with
Suggested change
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
if (walkState->skipCount) { | ||||||||||||||||||||||||||||||
--walkState->skipCount; | ||||||||||||||||||||||||||||||
return J9_STACKWALK_KEEP_ITERATING; | ||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is certainly a place that should not be changed - this wants the true view of the stack, not a user-facing one.