< prev index next >

src/java.base/share/classes/jdk/internal/misc/VM.java

Print this page


 451      * file is read and expanded in place of -XX:VMOptionFile option.
 452      */
 453     public static native String[] getRuntimeArguments();
 454 
 455     static {
 456         initialize();
 457     }
 458     private static native void initialize();
 459 
 460     /**
 461      * Initialize archived static fields in the given Class using archived
 462      * values from CDS dump time. Also initialize the classes of objects in
 463      * the archived graph referenced by those fields.
 464      *
 465      * Those static fields remain as uninitialized if there is no mapped CDS
 466      * java heap data or there is any error during initialization of the
 467      * object class in the archived graph.
 468      */
 469     public static native void initializeFromArchive(Class<?> c);
 470 


 471     public static native long getRandomSeedForCDSDump();
 472 
 473     /**
 474      * Check if CDS dynamic dumping is enabled via the DynamicDumpSharedSpaces flag.
 475      */
 476     public static native boolean isCDSDumpingEnabled();
 477 
 478     /**
 479      * Check if CDS sharing is enabled by via the UseSharedSpaces flag.
 480      */
 481     public static native boolean isCDSSharingEnabled();
 482 
 483     /**
 484      * Provides access to information on buffer usage.
 485      */
 486     public interface BufferPool {
 487         String getName();
 488         long getCount();
 489         long getTotalCapacity();
 490         long getMemoryUsed();




 451      * file is read and expanded in place of -XX:VMOptionFile option.
 452      */
 453     public static native String[] getRuntimeArguments();
 454 
 455     static {
 456         initialize();
 457     }
 458     private static native void initialize();
 459 
 460     /**
 461      * Initialize archived static fields in the given Class using archived
 462      * values from CDS dump time. Also initialize the classes of objects in
 463      * the archived graph referenced by those fields.
 464      *
 465      * Those static fields remain as uninitialized if there is no mapped CDS
 466      * java heap data or there is any error during initialization of the
 467      * object class in the archived graph.
 468      */
 469     public static native void initializeFromArchive(Class<?> c);
 470 
 471     public static native void defineArchivedModules(ClassLoader platformLoader, ClassLoader systemLoader);
 472 
 473     public static native long getRandomSeedForCDSDump();
 474 
 475     /**
 476      * Check if CDS dynamic dumping is enabled via the DynamicDumpSharedSpaces flag.
 477      */
 478     public static native boolean isCDSDumpingEnabled();
 479 
 480     /**
 481      * Check if CDS sharing is enabled by via the UseSharedSpaces flag.
 482      */
 483     public static native boolean isCDSSharingEnabled();
 484 
 485     /**
 486      * Provides access to information on buffer usage.
 487      */
 488     public interface BufferPool {
 489         String getName();
 490         long getCount();
 491         long getTotalCapacity();
 492         long getMemoryUsed();


< prev index next >