aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2006-07-27 11:01:51 +0000
committeraclement <aclement>2006-07-27 11:01:51 +0000
commit29a19f08e441071b9bf56a2e424014896e916399 (patch)
tree446d3ae4edd907a2f9328166a2f6dfc8e01640c2
parente4ab0ae5762be7d9869e0eee350677ac79749150 (diff)
downloadaspectj-29a19f08e441071b9bf56a2e424014896e916399.tar.gz
aspectj-29a19f08e441071b9bf56a2e424014896e916399.zip
pipeline changes: switch in World - defaults to ON, switched off via -Xset:pipelineCompilation=false
-rw-r--r--weaver/src/org/aspectj/weaver/World.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/World.java b/weaver/src/org/aspectj/weaver/World.java
index 8597690b8..9070a470f 100644
--- a/weaver/src/org/aspectj/weaver/World.java
+++ b/weaver/src/org/aspectj/weaver/World.java
@@ -108,6 +108,7 @@ public abstract class World implements Dump.INode {
// Xset'table options
private boolean fastDelegateSupportEnabled = isASMAround;
private boolean runMinimalMemory = false;
+ private boolean shouldPipelineCompilation = true;
public boolean forDEBUG_structuralChangesCode = false;
public boolean forDEBUG_bridgingCode = false;
@@ -764,6 +765,8 @@ public abstract class World implements Dump.INode {
public final static String xsetRUN_MINIMAL_MEMORY ="runMinimalMemory"; // default true
public final static String xsetDEBUG_STRUCTURAL_CHANGES_CODE = "debugStructuralChangesCode"; // default false
public final static String xsetDEBUG_BRIDGING = "debugBridging"; // default false
+ public final static String xsetPIPELINE_COMPILATION = "pipelineCompilation"; // default true
+ public final static String xsetPIPELINE_COMPILATION_DEFAULT = "true";
public boolean isInJava5Mode() {
return behaveInJava5Way;
@@ -1147,7 +1150,10 @@ public abstract class World implements Dump.INode {
getMessageHandler().handleMessage(MessageUtil.info("[activateLightweightDelegates=false] Disabling optimization to use lightweight delegates for non-woven types"));
}
- String s = p.getProperty(xsetRUN_MINIMAL_MEMORY,"false");
+ String s = p.getProperty(xsetPIPELINE_COMPILATION,xsetPIPELINE_COMPILATION_DEFAULT);
+ shouldPipelineCompilation = s.equalsIgnoreCase("true");
+
+ s = p.getProperty(xsetRUN_MINIMAL_MEMORY,"false");
runMinimalMemory = s.equalsIgnoreCase("true");
// if (runMinimalMemory)
// getMessageHandler().handleMessage(MessageUtil.info("[runMinimalMemory=true] Optimizing bcel processing (and cost of performance) to use less memory"));
@@ -1169,6 +1175,11 @@ public abstract class World implements Dump.INode {
return runMinimalMemory;
}
+ public boolean shouldPipelineCompilation() {
+ ensureAdvancedConfigurationProcessed();
+ return shouldPipelineCompilation;
+ }
+
public void setFastDelegateSupport(boolean b) {
if (b && !isASMAround) {
throw new BCException("Unable to activate fast delegate support, ASM classes cannot be found");