From: aclement Date: Thu, 27 Jul 2006 11:01:51 +0000 (+0000) Subject: pipeline changes: switch in World - defaults to ON, switched off via -Xset:pipelineCo... X-Git-Tag: PRE_PIPELINE~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=29a19f08e441071b9bf56a2e424014896e916399;p=aspectj.git pipeline changes: switch in World - defaults to ON, switched off via -Xset:pipelineCompilation=false --- 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");