jdk.internal.ref.CleanerFactory$_patch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qbicc-rt-java.base Show documentation
Show all versions of qbicc-rt-java.base Show documentation
The Qbicc builder for the java.base JDK module
package jdk.internal.ref;
import java.lang.ref.Cleaner;
import java.util.concurrent.ThreadFactory;
import jdk.internal.misc.InnocuousThread;
import org.qbicc.runtime.patcher.PatchClass;
import org.qbicc.runtime.patcher.RunTimeAspect;
/**
*
*/
@PatchClass(CleanerFactory.class)
@RunTimeAspect
class CleanerFactory$_patch {
private static final java.lang.ref.Cleaner commonCleaner = Cleaner.create(new ThreadFactory() {
@Override
public Thread newThread(Runnable r) {
return InnocuousThread.newSystemThread("Common-Cleaner", r, Thread.MAX_PRIORITY - 2);
}
});
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy