aboutsummaryrefslogtreecommitdiffstats
path: root/loadtime5
diff options
context:
space:
mode:
authoracolyer <acolyer>2006-02-10 17:04:19 +0000
committeracolyer <acolyer>2006-02-10 17:04:19 +0000
commitede9a8886896bf04426d2a28b8f331f8574bb413 (patch)
treee4ae6d51365d6f4decdef066b322f2cda6c75982 /loadtime5
parent594f80c4b81a34656e61b7b94a9b91513a19d4c3 (diff)
downloadaspectj-ede9a8886896bf04426d2a28b8f331f8574bb413.tar.gz
aspectj-ede9a8886896bf04426d2a28b8f331f8574bb413.zip
Put compilation-and-weaving-context into multi-thread mode when doing LTW
Diffstat (limited to 'loadtime5')
-rw-r--r--loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java b/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java
index b292452a4..448c3a011 100644
--- a/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java
+++ b/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java
@@ -15,6 +15,8 @@ import java.lang.instrument.ClassFileTransformer;
import java.lang.instrument.IllegalClassFormatException;
import java.security.ProtectionDomain;
+import org.aspectj.bridge.context.CompilationAndWeavingContext;
+
/**
* Java 1.5 adapter for class pre processor
*
@@ -29,6 +31,7 @@ public class ClassPreProcessorAgentAdapter implements ClassFileTransformer {
static {
try {
+ CompilationAndWeavingContext.setMultiThreaded(true);
s_preProcessor = new Aj();
s_preProcessor.initialize();
} catch (Exception e) {