337 }
338
339 /**
340 * Returns file extension of shared library, e.g. "so" on linux, "dll" on windows.
341 * @return file extension
342 */
343 public static String sharedLibraryExt() {
344 if (isWindows()) {
345 return "dll";
346 } else if (isOSX()) {
347 return "dylib";
348 } else {
349 return "so";
350 }
351 }
352
353 /*
354 * This should match the #if condition in ClassListParser::load_class_from_source().
355 */
356 public static boolean areCustomLoadersSupportedForCDS() {
357 boolean isLinux = Platform.isLinux();
358 boolean is64 = Platform.is64bit();
359 boolean isSolaris = Platform.isSolaris();
360
361 return (is64 && (isLinux || isSolaris));
362 }
363 }
|
337 }
338
339 /**
340 * Returns file extension of shared library, e.g. "so" on linux, "dll" on windows.
341 * @return file extension
342 */
343 public static String sharedLibraryExt() {
344 if (isWindows()) {
345 return "dll";
346 } else if (isOSX()) {
347 return "dylib";
348 } else {
349 return "so";
350 }
351 }
352
353 /*
354 * This should match the #if condition in ClassListParser::load_class_from_source().
355 */
356 public static boolean areCustomLoadersSupportedForCDS() {
357 return (is64bit() && (isLinux() || isSolaris() || isOSX()));
358 }
359 }
|