8223796: JVMCIEnv::get_jvmci_type does not keep klasses alive
authorkvn
Wed, 12 Jun 2019 10:37:35 -0700
changeset 55347 466d6e2d2ddf
parent 55346 730ed3fc6605
child 55348 d109188f6480
8223796: JVMCIEnv::get_jvmci_type does not keep klasses alive Reviewed-by: iveresov, eosterlund
src/hotspot/share/jvmci/jvmciEnv.cpp
--- a/src/hotspot/share/jvmci/jvmciEnv.cpp	Wed Jun 12 16:10:39 2019 +0100
+++ b/src/hotspot/share/jvmci/jvmciEnv.cpp	Wed Jun 12 10:37:35 2019 -0700
@@ -1111,13 +1111,6 @@
   if (klass.is_null()) {
     return type;
   }
-#ifdef INCLUDE_ALL_GCS
-    if (UseG1GC) {
-      // The klass might have come from a weak location so enqueue
-      // the Class to make sure it's noticed by G1
-      G1SATBCardTableModRefBS::enqueue(klass()->java_mirror());
-    }
-#endif  // Klass* don't require tracking as Metadata*
 
   jlong pointer = (jlong) klass();
   JavaThread* THREAD = JavaThread::current();