< prev index next >

test/lib/jdk/test/lib/Platform.java

Print this page
rev 50507 : 8204965: Fix '--disable-cds' and disable CDS on AIX by default


 327      * Returns file extension of shared library, e.g. "so" on linux, "dll" on windows.
 328      * @return file extension
 329      */
 330     public static String sharedLibraryExt() {
 331         if (isWindows()) {
 332             return "dll";
 333         } else if (isOSX()) {
 334             return "dylib";
 335         } else {
 336             return "so";
 337         }
 338     }
 339 
 340     /*
 341      * This should match the #if condition in ClassListParser::load_class_from_source().
 342      */
 343     public static boolean areCustomLoadersSupportedForCDS() {
 344         boolean isLinux = Platform.isLinux();
 345         boolean is64 = Platform.is64bit();
 346         boolean isSolaris = Platform.isSolaris();
 347         boolean isAix = Platform.isAix();
 348 
 349         return (is64 && (isLinux || isSolaris || isAix));
 350     }
 351 }


 327      * Returns file extension of shared library, e.g. "so" on linux, "dll" on windows.
 328      * @return file extension
 329      */
 330     public static String sharedLibraryExt() {
 331         if (isWindows()) {
 332             return "dll";
 333         } else if (isOSX()) {
 334             return "dylib";
 335         } else {
 336             return "so";
 337         }
 338     }
 339 
 340     /*
 341      * This should match the #if condition in ClassListParser::load_class_from_source().
 342      */
 343     public static boolean areCustomLoadersSupportedForCDS() {
 344         boolean isLinux = Platform.isLinux();
 345         boolean is64 = Platform.is64bit();
 346         boolean isSolaris = Platform.isSolaris();

 347 
 348         return (is64 && (isLinux || isSolaris));
 349     }
 350 }
< prev index next >