--- old/src/hotspot/share/code/codeCache.cpp 2017-11-17 16:58:15.423834262 -0500 +++ new/src/hotspot/share/code/codeCache.cpp 2017-11-17 16:58:15.235834265 -0500 @@ -259,12 +259,12 @@ } // We do not need the profiled CodeHeap, use all space for the non-profiled CodeHeap - if(!heap_available(CodeBlobType::MethodProfiled)) { + if (!heap_available(CodeBlobType::MethodProfiled)) { non_profiled_size += profiled_size; profiled_size = 0; } // We do not need the non-profiled CodeHeap, use all space for the non-nmethod CodeHeap - if(!heap_available(CodeBlobType::MethodNonProfiled)) { + if (!heap_available(CodeBlobType::MethodNonProfiled)) { non_nmethod_size += non_profiled_size; non_profiled_size = 0; } @@ -415,7 +415,7 @@ size_t size_initial = MIN2(InitialCodeCacheSize, rs.size()); size_initial = align_up(size_initial, os::vm_page_size()); if (!heap->reserve(rs, size_initial, CodeCacheSegmentSize)) { - vm_exit_during_initialization("Could not reserve enough space for code cache"); + vm_exit_during_initialization(err_msg("Could not reserve enough space in %s", heap->name())); } // Register the CodeHeap