< prev index next >

src/share/vm/runtime/jniHandles.cpp

Print this page

        

@@ -114,11 +114,11 @@
 oop JNIHandles::resolve_jweak(jweak handle) {
   assert(is_jweak(handle), "precondition");
   oop result = jweak_ref(handle);
   result = guard_value<external_guard>(result);
 #if INCLUDE_ALL_GCS
-  if (result != NULL && UseG1GC) {
+  if (result != NULL && (UseG1GC || (UseShenandoahGC && ShenandoahSATBBarrier))) {
     G1SATBCardTableModRefBS::enqueue(result);
   }
 #endif // INCLUDE_ALL_GCS
   return result;
 }
< prev index next >