-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8268178: Extract sender frame parsing to CodeBlob::FrameParser #4337
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
Conversation
👋 Welcome back luhenry! A progress list of the required criteria for merging this PR into |
25c2419
to
63e89d8
Compare
@luhenry this pull request can not be integrated into git checkout codeblob-frameparser
git fetch https://git.openjdk.java.net/jdk master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
Webrevs
|
int code_size = align_up((int)(10*K), 2*BytesPerWord); | ||
BufferBlob* blob = BufferBlob::create("InlineCacheBuffer", code_size); | ||
if (blob == NULL) { | ||
vm_exit_out_of_memory(code_size, OOM_MALLOC_ERROR, "CodeCache: no room for InlineCacheBuffer"); |
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.
Is VM exit here appropriate?
AFAICS, previously the failure to allocate InlineCacheBuffer was caught in assertion only.
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.
53c879d
to
2800cc5
Compare
Whether and how a frame is setup is controlled by the code generator for the specific CodeBlock. The CodeBlock is then in the best place to know how to parse the sender's frame from the current frame in the given CodeBlock. This refactoring proposes to extract this parsing out of `frame` and into a `CodeBlock::FrameParser`. This FrameParser is then specialized in the relevant inherited children of CodeBlock. This change is to largely facilitate adding new supported cases for JDK-8252417 like runtime stubs.
2800cc5
to
3b44520
Compare
Closing for now as there are still failing tests which I can't seem to reproduce locally. I'll reopen when I've figured out the root cause. |
Whether and how a frame is setup is controlled by the code generator
for the specific CodeBlock. The CodeBlock is then in the best place to know how
to parse the sender's frame from the current frame in the given CodeBlock.
This refactoring proposes to extract this parsing out of
frame
and into aCodeBlock::FrameParser
. This FrameParser is then specialized in the relevantinherited children of CodeBlock.
This change is to largely facilitate adding new supported cases for JDK-8252417 [1]
like runtime stubs.
[1] https://bugs.openjdk.java.net/browse/JDK-8252417
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4337/head:pull/4337
$ git checkout pull/4337
Update a local copy of the PR:
$ git checkout pull/4337
$ git pull https://git.openjdk.java.net/jdk pull/4337/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4337
View PR using the GUI difftool:
$ git pr show -t 4337
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4337.diff