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.
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
8240567: MethodTooLargeException thrown while creating a jlink image #14408
8240567: MethodTooLargeException thrown while creating a jlink image #14408
Changes from 3 commits
7c48693
23bbc0c
9d4142c
e158a2c
e973295
a084ca5
b61c1dc
a380441
4898ba8
edd85c9
a6c9c98
4704349
b2051c3
912f34c
fe5be2f
5b3d712
cdc9aee
b31a017
6abca9f
9835a64
ae1bbe7
b150a28
142b555
f50ec77
b2b9036
bbbbb0e
15d7448
8d02911
13797d2
e112f03
8494517
584edba
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Please add the comments to describe what this does. Pseudo code may also help. It'd be helpful to explain the reason why the Sub method stores and restores what local variables.
I also wonder if you consider
moduleDescriptors
does this:The same
localVars
array list is used and just add the new local variables defined from each batch (no need to create a new ArrayList and stores local variables every time)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 assume the "old" comments were too detailed. I removed them at JabRef/jdk@
23bbc0c
(#2) to have the code reviewable. I can readd some of them if that helps.I also added a compressed description of the idea at
edd85c9
(#14408). Update here, in the PR one simply needs to scroll up and sees the new comment.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.
Have you considered passing the same ArrayList for saving and restoring local variables? Currently each method creates one new array list and save the local variables from
firstVariableForDedup
tonextLocalVar
, but the local variables fromfirstVariableForDedup
are already added to the array list created by the previous method.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.
Ah, I see your commit. I will check it out.