< prev index next >
src/share/vm/code/codeCache.cpp
Print this page
rev 12121 : [mq]: all_changes.patch
*** 545,555 ****
// 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
FOR_ALL_HEAPS(heap) {
if ((*heap)->contains(p)) {
return true;
}
}
--- 545,558 ----
// flush the hardware I-cache
ICache::invalidate_range(cb->content_begin(), cb->content_size());
}
bool CodeCache::contains(void *p) {
! // S390 uses contains() in current_frame(), which is used before
! // code cache initialization if NativeMemoryTracking=detail is set.
! S390_ONLY(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 >