-
Notifications
You must be signed in to change notification settings - Fork 111
8357289: Break down the String constructor into smaller methods #351
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
base: master
Are you sure you want to change the base?
Conversation
|
/label add backport |
|
👋 Welcome back swen! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
@wenshao |
Webrevs
|
Reviewed-by: liach, rriggs
38e36d6 to
b6c666e
Compare
|
@wenshao Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
|
/label add backport |
|
@wenshao |
|
This backport pull request has now been updated with issue from the original commit. |
|
|
|
/approval |
|
@wenshao usage: |
|
/approval 8357289 request speed up |
Through JVM Option +PrintInlining, we found that String has a constructor codeSize of 852, which is too large. This caused failed to inline.
The following is the output information of PrintInlining:
In Java code, the big method that cannot be inlined is the following constructor
The above String constructor is too large; break it down into smaller methods with a codeSize under 325 to allow them to be inlined by the C2.
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk25u.git pull/351/head:pull/351$ git checkout pull/351Update a local copy of the PR:
$ git checkout pull/351$ git pull https://git.openjdk.org/jdk25u.git pull/351/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 351View PR using the GUI difftool:
$ git pr show -t 351Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk25u/pull/351.diff
Using Webrev
Link to Webrev Comment