src/share/classes/sun/misc/VM.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File jdk Sdiff src/share/classes/sun/misc

src/share/classes/sun/misc/VM.java

Print this page


   1 /*
   2  * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 281         if ("true".equals(s))
 282             pageAlignDirectMemory = true;
 283 
 284         // Set a boolean to determine whether ClassLoader.loadClass accepts
 285         // array syntax.  This value is controlled by the system property
 286         // "sun.lang.ClassLoader.allowArraySyntax".
 287         s = props.getProperty("sun.lang.ClassLoader.allowArraySyntax");
 288         allowArraySyntax = (s == null
 289                                ? defaultAllowArraySyntax
 290                                : Boolean.parseBoolean(s));
 291 
 292         // Remove other private system properties
 293         // used by java.lang.Integer.IntegerCache
 294         props.remove("java.lang.Integer.IntegerCache.high");
 295 
 296         // used by java.util.zip.ZipFile
 297         props.remove("sun.zip.disableMemoryMapping");
 298 
 299         // used by sun.launcher.LauncherHelper
 300         props.remove("sun.java.launcher.diag");



 301     }
 302 
 303     // Initialize any miscellenous operating system settings that need to be
 304     // set for the class libraries.
 305     //
 306     public static void initializeOSEnvironment() {
 307         if (!booted) {
 308             OSEnvironment.initialize();
 309         }
 310     }
 311 
 312     /* Current count of objects pending for finalization */
 313     private static volatile int finalRefCount = 0;
 314 
 315     /* Peak count of objects pending for finalization */
 316     private static volatile int peakFinalRefCount = 0;
 317 
 318     /*
 319      * Gets the number of objects pending for finalization.
 320      *


   1 /*
   2  * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 281         if ("true".equals(s))
 282             pageAlignDirectMemory = true;
 283 
 284         // Set a boolean to determine whether ClassLoader.loadClass accepts
 285         // array syntax.  This value is controlled by the system property
 286         // "sun.lang.ClassLoader.allowArraySyntax".
 287         s = props.getProperty("sun.lang.ClassLoader.allowArraySyntax");
 288         allowArraySyntax = (s == null
 289                                ? defaultAllowArraySyntax
 290                                : Boolean.parseBoolean(s));
 291 
 292         // Remove other private system properties
 293         // used by java.lang.Integer.IntegerCache
 294         props.remove("java.lang.Integer.IntegerCache.high");
 295 
 296         // used by java.util.zip.ZipFile
 297         props.remove("sun.zip.disableMemoryMapping");
 298 
 299         // used by sun.launcher.LauncherHelper
 300         props.remove("sun.java.launcher.diag");
 301 
 302         // used by java.util.zip.CRC32
 303         props.remove("sun.zip.clmulSupported");
 304     }
 305 
 306     // Initialize any miscellenous operating system settings that need to be
 307     // set for the class libraries.
 308     //
 309     public static void initializeOSEnvironment() {
 310         if (!booted) {
 311             OSEnvironment.initialize();
 312         }
 313     }
 314 
 315     /* Current count of objects pending for finalization */
 316     private static volatile int finalRefCount = 0;
 317 
 318     /* Peak count of objects pending for finalization */
 319     private static volatile int peakFinalRefCount = 0;
 320 
 321     /*
 322      * Gets the number of objects pending for finalization.
 323      *


src/share/classes/sun/misc/VM.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File