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
*** old/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/CompilerThread.java Fri Jul 7 09:29:46 2017
--- new/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/CompilerThread.java Fri Jul 7 09:29:46 2017
*** 20,63 ****
--- 20,42 ----
* 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}.
! * A compiler thread is a daemon thread that runs at {@link Thread#MAX_PRIORITY}.
*/
public class CompilerThread extends Thread {
! private final DebugConfigAccess debugConfigAccess;
public CompilerThread(Runnable r, String namePrefix, DebugConfigAccess debugConfigAccess) {
! public CompilerThread(Runnable r, String namePrefix) {
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) {
}
}
}
}
}
}
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