-
Notifications
You must be signed in to change notification settings - Fork 12
Don't preload jmethodIDs when cstack=vm with hotspot JVM #549
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
Open
zhengyu123
wants to merge
29
commits into
main
Choose a base branch
from
hs_jmethod_id
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
5f5fa35
Don't preload jmethodIDs when cstack=vm with hotspot JVM
zhengyu123 4e3bf98
v1
zhengyu123 957d27c
v2
zhengyu123 14728a7
v3
zhengyu123 64e183b
Clean up
zhengyu123 c782c3c
Fix
zhengyu123 c462d85
Add application/platform class loader support
zhengyu123 7710c6f
Fix
zhengyu123 6c6f1a7
Fix
zhengyu123 07c3a4c
Harden symbolAt()
zhengyu123 4827c68
Merge branch 'main' into hs_jmethod_id
zhengyu123 3dda4e3
force_jmethodID argument
zhengyu123 a826e7e
Consolidate JVM initialization
zhengyu123 9d1818a
Cleanup: fixed typo and etc.
zhengyu123 13349c3
Remove dead code
zhengyu123 06b1a92
Fix
zhengyu123 b95c88c
Fix
zhengyu123 df5e992
Fix
zhengyu123 c26aeea
Handle hidden classes
zhengyu123 b2a9a1d
Review comments
zhengyu123 b56c6b4
Clean up
zhengyu123 7567904
Review comments
zhengyu123 79adaea
Correct comment
zhengyu123 4702a62
Merge branch 'main' into hs_jmethod_id
zhengyu123 4d6724c
Merge branch 'main' into hs_jmethod_id
jbachorik 39149af
Review comments
zhengyu123 ed1c047
Fix default value
zhengyu123 b5a898f
Code review comments
zhengyu123 1ef3b88
More review comments
zhengyu123 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| /* | ||
| * Copyright The async-profiler authors | ||
| * Copyright 2026, Datadog, Inc. | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| #include "flightRecorder.h" | ||
|
Contributor
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. leading space |
||
|
|
||
| #include "jvmSupport.inline.h" | ||
|
|
||
|
|
||
| jint MethodInfo::getLineNumber(jint bci) { | ||
| // if the shared pointer is not pointing to the line number table, consider | ||
| // size 0 | ||
| if (!_line_number_table || _line_number_table->_size == 0) { | ||
| return 0; | ||
| } | ||
|
|
||
| int i = 1; | ||
| while (i < _line_number_table->_size && | ||
| bci >= ((jvmtiLineNumberEntry *)_line_number_table->_ptr)[i] | ||
| .start_location) { | ||
| i++; | ||
| } | ||
| return ((jvmtiLineNumberEntry *)_line_number_table->_ptr)[i - 1] | ||
| .line_number; | ||
| } | ||
|
|
||
| bool MethodInfo::isHidden() { | ||
| return JVMSupport::isHidden(_modifiers); | ||
| } | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I find it unintuitive/confusing that in order to turn the new feature on, we have to set the flag to
false.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.
I don't like to name, what do you suggest?
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.
Yeah I don't know either, it seems hard. I could only come up with dont-preload-methodIds or no-preload-methodIds, but it doesn't seem very much better. I leave that up to you.