src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/CompilerThread.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/CompilerThread.java

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/CompilerThread.java

Print this page

        

*** 20,63 **** * or visit www.oracle.com if you need additional information or have any * questions. */ package org.graalvm.compiler.core; - import org.graalvm.compiler.core.CompilerThreadFactory.DebugConfigAccess; - import org.graalvm.compiler.debug.DebugConfig; - import org.graalvm.compiler.debug.DebugDumpHandler; - import org.graalvm.compiler.debug.GraalDebugConfig; - /** ! * A compiler thread is a daemon thread that runs at {@link Thread#MAX_PRIORITY} and executes in the ! * context of a thread-local {@linkplain GraalDebugConfig debug configuration}. */ public class CompilerThread extends Thread { ! private final DebugConfigAccess debugConfigAccess; ! ! public CompilerThread(Runnable r, String namePrefix, DebugConfigAccess debugConfigAccess) { super(r); this.setName(namePrefix + "-" + this.getId()); this.setPriority(Thread.MAX_PRIORITY); this.setDaemon(true); - this.debugConfigAccess = debugConfigAccess; } @Override public void run() { - DebugConfig debugConfig = debugConfigAccess.getDebugConfig(); setContextClassLoader(getClass().getClassLoader()); - try { super.run(); - } finally { - if (debugConfig != null) { - for (DebugDumpHandler dumpHandler : debugConfig.dumpHandlers()) { - try { - dumpHandler.close(); - } catch (Throwable t) { - } - } - } - } } } --- 20,42 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ package org.graalvm.compiler.core; /** ! * A compiler thread is a daemon thread that runs at {@link Thread#MAX_PRIORITY}. */ public class CompilerThread extends Thread { ! public CompilerThread(Runnable r, String namePrefix) { super(r); this.setName(namePrefix + "-" + this.getId()); this.setPriority(Thread.MAX_PRIORITY); this.setDaemon(true); } @Override public void run() { setContextClassLoader(getClass().getClassLoader()); super.run(); } }
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/CompilerThread.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File