diff options
author | acolyer <acolyer> | 2006-02-10 17:04:19 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2006-02-10 17:04:19 +0000 |
commit | ede9a8886896bf04426d2a28b8f331f8574bb413 (patch) | |
tree | e4ae6d51365d6f4decdef066b322f2cda6c75982 | |
parent | 594f80c4b81a34656e61b7b94a9b91513a19d4c3 (diff) | |
download | aspectj-ede9a8886896bf04426d2a28b8f331f8574bb413.tar.gz aspectj-ede9a8886896bf04426d2a28b8f331f8574bb413.zip |
Put compilation-and-weaving-context into multi-thread mode when doing LTW
-rw-r--r-- | loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java | 3 |
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) { |