JDK-8177390: java -version does not differentiate between which port of AArch64 is used

mark.reinhold at oracle.com mark.reinhold at oracle.com
Mon Mar 27 15:28:58 UTC 2017


2017/3/26 18:08:15 -0700, david.holmes at oracle.com:
> On 25/03/2017 3:24 AM, Bob Vandette wrote:
>> ...
>>> 
>> Can we use the property hotspot.target.cpu.port={aarch64,arm}
> 
> The original request here was for a way to distinguish the two ports 
> based on "java -version", which is satisfied by the change suggested for 
> "java -Xinternalversion". I do not see that it is necessary to have a 
> programmatic means of querying this property from inside a running VM. 
> That said the change proposed above will expose the version through the 
> VMInfo Dcmd.
> 
> System properties tend to be long-lived so adding them should not be 
> undertaken lightly. ...

Agreed.  I'm glad we could resolve this without introducing (yet another!)
system property.

- Mark


More information about the jdk9-dev mailing list