diff options
Diffstat (limited to 'libjava/java/lang/VMCompiler.java')
-rw-r--r-- | libjava/java/lang/VMCompiler.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libjava/java/lang/VMCompiler.java b/libjava/java/lang/VMCompiler.java index 789445e..0e4701c 100644 --- a/libjava/java/lang/VMCompiler.java +++ b/libjava/java/lang/VMCompiler.java @@ -73,6 +73,11 @@ final class VMCompiler // Temporary directory to use. public static String gcjJitTmpdir; + public static boolean precompiles() + { + return (canUseCompiler & useCompiler); + } + // This maps a ClassLoader to a set of SharedLibHelper objects that // it has used. We do things this way to ensure that a // SharedLibHelper is collected if and only if the ClassLoader is. @@ -186,8 +191,7 @@ final class VMCompiler int offset, int len, ProtectionDomain domain) { - if (precompiledMapFiles == null - && (! useCompiler || ! canUseCompiler)) + if (precompiledMapFiles == null && !precompiles()) return null; byte digest[]; @@ -232,7 +236,7 @@ final class VMCompiler } } - if (! useCompiler || ! canUseCompiler) + if (!precompiles()) return null; try |