|
From: <ans...@us...> - 2007-01-16 23:16:51
|
Revision: 3080
http://jnode.svn.sourceforge.net/jnode/?rev=3080&view=rev
Author: ansari82
Date: 2007-01-16 15:16:49 -0800 (Tue, 16 Jan 2007)
Log Message:
-----------
Modified LoadCompileService to check for NoOptCompile, and use previous compiler if this is set and the JikesOpt compiler has been selected (this can be done better, e.g. by explicitly defining a fallback compiler, since the 'previous' compiler may be null, arrayoutofbounds, or stub
Modified Paths:
--------------
branches/jikesRVM/core/src/core/org/jnode/vm/LoadCompileService.java
Modified: branches/jikesRVM/core/src/core/org/jnode/vm/LoadCompileService.java
===================================================================
--- branches/jikesRVM/core/src/core/org/jnode/vm/LoadCompileService.java 2007-01-16 23:14:51 UTC (rev 3079)
+++ branches/jikesRVM/core/src/core/org/jnode/vm/LoadCompileService.java 2007-01-16 23:16:49 UTC (rev 3080)
@@ -208,7 +208,8 @@
}
if (vmMethod.getNativeCodeOptLevel() < optLevel) {
if(cmps[index] instanceof JikesRVMOptCompiler &&
- !vmMethod.getDeclaringClass().getName().startsWith("org.jnode.test"))
+ !vmMethod.getDeclaringClass().getName().startsWith("org.jnode.test")
+ || vmMethod.hasNoOptCompilePragma())
cmp = cmps[index-1];
else
cmp = cmps[index];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|