RFR 8185496: Improve performance of system properties initialization in initPhase1

Mandy Chung mandy.chung at oracle.com
Thu Nov 8 21:55:40 UTC 2018

On 11/8/18 7:41 AM, Roger Riggs wrote:
> Webrev updated in place:  (Only System.java is modified)
> http://cr.openjdk.java.net/%7Erriggs/webrev-props-cleanup-8185496/index.html

Just notice this...

I wonder if System.setProperties(null) should call 
VM.saveAndRemoveProperties(props) to be consistent.  It's an existing 
issue.  You may consider refactoring and adding initSystemProperties 
method that will be called from initPhase1 and setProperties.

Otherwise looks good.


More information about the core-libs-dev mailing list