-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
8271569: Clean up the use of CDS constants and field offsets #5423
Conversation
👋 Welcome back minqi! A progress list of the required criteria for merging this PR into |
/label add hotspot-runtime |
@yminqi |
Hi Yumin,
This is not showing up in the PR as a rename but as a new file. So there is no way to know what changes you may have made inside cdsConstants.cpp. The header file change shows as a rename. David |
Hi, David Yumin |
Mailing list message from David Holmes on hotspot-dev: On 9/09/2021 1:16 pm, Yumin Qi wrote:
?? I'd rather you try again and do a rename :) Otherwise please advise Thanks, |
@dholmes-ora I see your point here --- let me redo the patch using rename. |
Changed cdsOffsets.cpp to cdsConstants.cpp, now the offsets and constants are initialized static and searched separately.
The offsets array could not use 'constexpr' since g++ on MacOs and VSC++ on Windows complained reinterpret_cast in 'offset_of' should not be used in constexpr initialization. Changed some field access for forming global list first.
Tests: ter1-4
Thanks
Yumin
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5423/head:pull/5423
$ git checkout pull/5423
Update a local copy of the PR:
$ git checkout pull/5423
$ git pull https://git.openjdk.java.net/jdk pull/5423/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5423
View PR using the GUI difftool:
$ git pr show -t 5423
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5423.diff