< prev index next >

src/share/vm/code/codeCache.cpp

Print this page
rev 12048 : 8166560: [s390] Basic enablement of s390 port.

@@ -545,11 +545,14 @@
   // flush the hardware I-cache
   ICache::invalidate_range(cb->content_begin(), cb->content_size());
 }
 
 bool CodeCache::contains(void *p) {
-  // It should be ok to call contains without holding a lock
+  // S390 uses contains() in current_frame(), which is used before
+  // code cache initialization if NativeMemoryTracking=detail is set.
+  if (_heaps == NULL) return false;
+  // It should be ok to call contains without holding a lock.
   FOR_ALL_HEAPS(heap) {
     if ((*heap)->contains(p)) {
       return true;
     }
   }
< prev index next >