From ede9a8886896bf04426d2a28b8f331f8574bb413 Mon Sep 17 00:00:00 2001 From: acolyer Date: Fri, 10 Feb 2006 17:04:19 +0000 Subject: [PATCH] Put compilation-and-weaving-context into multi-thread mode when doing LTW --- .../aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.39.5