src/share/vm/code/codeCache.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff src/share/vm/code/codeCache.cpp
src/share/vm/code/codeCache.cpp
Print this page
*** 756,768 ****
/**
* Returns true if a CodeHeap is full and sets code_blob_type accordingly.
*/
bool CodeCache::is_full(int* code_blob_type) {
! FOR_ALL_HEAPS(heap) {
! if ((*heap)->unallocated_capacity() < CodeCacheMinimumFreeSpace) {
! *code_blob_type = (*heap)->code_blob_type();
return true;
}
}
return false;
}
--- 756,773 ----
/**
* Returns true if a CodeHeap is full and sets code_blob_type accordingly.
*/
bool CodeCache::is_full(int* code_blob_type) {
! FOR_ALL_HEAPS(heap_iterator) {
! CodeHeap* heap = *heap_iterator;
! // Do not check the non-nmethod code heap because we can store
! // non-nmethod code in the non-profiled code heap (see comment
! // 'fallback solution' in CodeCache::allocate).
! if (heap->code_blob_type() != CodeBlobType::NonNMethod &&
! heap->unallocated_capacity() < CodeCacheMinimumFreeSpace) {
! *code_blob_type = heap->code_blob_type();
return true;
}
}
return false;
}
*** 1011,1021 ****
// Not yet reported for this heap, report
heap->report_full();
if (SegmentedCodeCache) {
warning("%s is full. Compiler has been disabled.", CodeCache::get_code_heap_name(code_blob_type));
warning("Try increasing the code heap size using -XX:%s=",
! (code_blob_type == CodeBlobType::MethodNonProfiled) ? "NonProfiledCodeHeapSize" : "ProfiledCodeHeapSize");
} else {
warning("CodeCache is full. Compiler has been disabled.");
warning("Try increasing the code cache size using -XX:ReservedCodeCacheSize=");
}
ResourceMark rm;
--- 1016,1026 ----
// Not yet reported for this heap, report
heap->report_full();
if (SegmentedCodeCache) {
warning("%s is full. Compiler has been disabled.", CodeCache::get_code_heap_name(code_blob_type));
warning("Try increasing the code heap size using -XX:%s=",
! (code_blob_type == CodeBlobType::MethodProfiled) ? "ProfiledCodeHeapSize" : "NonProfiledCodeHeapSize");
} else {
warning("CodeCache is full. Compiler has been disabled.");
warning("Try increasing the code cache size using -XX:ReservedCodeCacheSize=");
}
ResourceMark rm;
src/share/vm/code/codeCache.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File