src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/CompilerThreadFactory.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/CompilerThreadFactory.java
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/CompilerThreadFactory.java
Print this page
*** 22,57 ****
*/
package org.graalvm.compiler.core;
import java.util.concurrent.ThreadFactory;
- import org.graalvm.compiler.debug.DebugConfig;
-
/**
* Facility for creating {@linkplain CompilerThread compiler threads}.
*/
public class CompilerThreadFactory implements ThreadFactory {
- /**
- * Capability to get a thread-local debug configuration for the current thread.
- */
- public interface DebugConfigAccess {
- /**
- * Get a thread-local debug configuration for the current thread. This will be null if
- * debugging is disabled.
- */
- DebugConfig getDebugConfig();
- }
-
protected final String threadNamePrefix;
- protected final DebugConfigAccess debugConfigAccess;
! public CompilerThreadFactory(String threadNamePrefix, DebugConfigAccess debugConfigAccess) {
this.threadNamePrefix = threadNamePrefix;
- this.debugConfigAccess = debugConfigAccess;
}
@Override
public Thread newThread(Runnable r) {
! return new CompilerThread(r, threadNamePrefix, debugConfigAccess);
}
}
--- 22,42 ----
*/
package org.graalvm.compiler.core;
import java.util.concurrent.ThreadFactory;
/**
* Facility for creating {@linkplain CompilerThread compiler threads}.
*/
public class CompilerThreadFactory implements ThreadFactory {
protected final String threadNamePrefix;
! public CompilerThreadFactory(String threadNamePrefix) {
this.threadNamePrefix = threadNamePrefix;
}
@Override
public Thread newThread(Runnable r) {
! return new CompilerThread(r, threadNamePrefix);
}
}
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/CompilerThreadFactory.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File