8383460: Replace "sharing" in VM version string with "aot" information - #32486
8383460: Replace "sharing" in VM version string with "aot" information#32486iklam wants to merge 1 commit into
Conversation
|
👋 Welcome back iklam! A progress list of the required criteria for merging this PR into |
|
@iklam This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 83 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
vnkozlov
left a comment
There was a problem hiding this comment.
It is annoying to remember to use FREE_C_HEAP_ARRAY(). Can we allocate version string on ResourceArea and use ResourceMark?
|
On other hand you may need to add as many ResourceMark as FREE_C_HEAP_ARRAY. |
We only call this function in a small number of places so having to free explicitly doesn't seem to be too bad. |
vnkozlov
left a comment
There was a problem hiding this comment.
Thank you for explanation. Changes look good then.
|
Are we sure the pointer is not cached in some global variable/structure by any of the callee to which
I don't mind this. If any one feels strongly about this, I guess another option is to use RAII pattern, like: |
All the calls of |
Thanks for adding this info. I have no more comments, and the code changes look fine. |
|
Thanks @vnkozlov @ashu-mehra for the review |
|
Going to push as commit 30df8a5.
Your commit was automatically rebased without conflicts. |
[1] When using the new AOT workflow, the word "sharing" is replaced with "aot training", "aot assembly", or "aot production" as appropriate.
[2] Changed
Abstract_VM_Version::vm_info_string()to return a c-heap allocated string. The caller should free it. The old way of enumerating every single possibility is not scalable.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/32486/head:pull/32486$ git checkout pull/32486Update a local copy of the PR:
$ git checkout pull/32486$ git pull https://git.openjdk.org/jdk.git pull/32486/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 32486View PR using the GUI difftool:
$ git pr show -t 32486Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/32486.diff
Using Webrev
Link to Webrev Comment