Skip to content

Commit

Permalink
separate out HotSpot specific semantics of getSavedProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
dougxc committed Nov 1, 2024
1 parent 8bcd492 commit c8ef6ca
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@ static void checkJVMCIEnabled() {
}

/**
* Gets an unmodifiable copy of the system properties parsed by {@code arguments.cpp}
* plus {@code java.specification.version}, {@code os.name} and {@code os.arch}.
* The latter two are forced to be the real OS and architecture. That is, values
* for these two properties set on the command line are ignored.
* Gets an unmodifiable copy of the system properties as of VM startup.
*
* If running on Hotspot, this will be the system properties parsed by {@code arguments.cpp}
* plus {@code java.specification.version}, {@code os.name} and {@code os.arch}. The latter two
* are forced to be the real OS and architecture. That is, values for these two properties set
* on the command line are ignored.
*/
public static Map<String, String> getSavedProperties() {
checkJVMCIEnabled();
Expand Down

0 comments on commit c8ef6ca

Please sign in to comment.