diff options
author | jfrijters <jfrijters> | 2012-08-30 12:56:24 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2012-08-30 12:56:24 +0400 |
commit | b8df431272f63eaa06c0a9ccf911ff8f520dbeb9 (patch) | |
tree | e71ea75d1ac4816b95e5df4dbd33fb435edd0b6e /openjdk/java | |
parent | 7e3aaea45f53772ca5751a1a8a4f0b87272bb8fd (diff) |
Implemented VM.isBooted() with respect to system property initialization to support 7u6 which depends on VM.isBooted() to figure out whether it is safe to query a system property in Hashtable (which is itself used during system property initialization, because java.util.Properties is a Hashtable subclass).
Diffstat (limited to 'openjdk/java')
-rw-r--r-- | openjdk/java/lang/System.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openjdk/java/lang/System.java b/openjdk/java/lang/System.java index c58c364b..e6f4d3cc 100644 --- a/openjdk/java/lang/System.java +++ b/openjdk/java/lang/System.java @@ -63,6 +63,10 @@ final class Props // be able to change the behavior by setting these system properties. ClassLoader.initializeLibraryPaths(props); sun.misc.VM.saveAndRemoveProperties(props); + + // now that we've initialized the system properties (which are our only + // notion of "booting" the VM) we set the booted flag. + sun.misc.VM.booted(); } } |