summaryrefslogtreecommitdiffstats
path: root/libjava/java/lang/VMCompiler.java
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-09 19:58:05 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-09 19:58:05 +0000
commit65bf3316cf384588453604be6b4f0ed3751a8b0f (patch)
tree996a5f57d4a68c53473382e45cb22f574cb3e4db /libjava/java/lang/VMCompiler.java
parent8fc56618a84446beccd45b80381cdfe0e94050df (diff)
downloadppe42-gcc-65bf3316cf384588453604be6b4f0ed3751a8b0f.tar.gz
ppe42-gcc-65bf3316cf384588453604be6b4f0ed3751a8b0f.zip
Merged gcj-eclipse branch to trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120621 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/lang/VMCompiler.java')
-rw-r--r--libjava/java/lang/VMCompiler.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/libjava/java/lang/VMCompiler.java b/libjava/java/lang/VMCompiler.java
index 789445e4f56..0e4701c8409 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
OpenPOWER on IntegriCloud