8223796: JVMCIEnv::get_jvmci_type does not keep klasses alive
Reviewed-by: iveresov, eosterlund
--- 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();