src/share/vm/code/codeCache.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/share/vm/code/codeCache.cpp	Mon Feb  6 18:13:53 2017
--- new/src/share/vm/code/codeCache.cpp	Mon Feb  6 18:13:53 2017

*** 415,425 **** --- 415,430 ---- } CodeHeap* CodeCache::get_code_heap(const CodeBlob* cb) { assert(cb != NULL, "CodeBlob is null"); FOR_ALL_HEAPS(heap) { - if ((*heap)->contains(cb->code_begin())) { + guarantee((char*) cb >= (*heap)->low_boundary() && (char*) cb < (*heap)->high(), + "Code blob " INTPTR_FORMAT " should be after " + "heap low boundary " INTPTR_FORMAT " " + "and before heap high boundary " INTPTR_FORMAT, + p2i(cb), p2i((*heap)->low_boundary()), p2i((*heap)->high())); return *heap; } } ShouldNotReachHere(); return NULL;

src/share/vm/code/codeCache.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File