--- a/jdk/src/java.base/share/classes/java/lang/ref/Reference.java Mon Mar 16 23:59:02 2015 +0300
+++ b/jdk/src/java.base/share/classes/java/lang/ref/Reference.java Thu Apr 02 11:43:11 2015 +0100
@@ -27,6 +27,7 @@
import sun.misc.Cleaner;
import sun.misc.JavaLangRefAccess;
+import sun.misc.ManagedLocalsThread;
import sun.misc.SharedSecrets;
/**
@@ -126,7 +127,7 @@
/* High-priority thread to enqueue pending References
*/
- private static class ReferenceHandler extends Thread {
+ private static class ReferenceHandler extends ManagedLocalsThread {
private static void ensureClassInitialized(Class<?> clazz) {
try {