hotspot/src/share/vm/code/codeCache.cpp
changeset 27642 8c9eff693145
parent 27420 04e6f914cce1
child 27880 afb974a04396
equal deleted inserted replaced
27641:fca9ac607ebc 27642:8c9eff693145
   303 
   303 
   304   // Register the CodeHeap
   304   // Register the CodeHeap
   305   MemoryService::add_code_heap_memory_pool(heap, name);
   305   MemoryService::add_code_heap_memory_pool(heap, name);
   306 }
   306 }
   307 
   307 
   308 CodeHeap* CodeCache::get_code_heap(CodeBlob* cb) {
   308 CodeHeap* CodeCache::get_code_heap(const CodeBlob* cb) {
   309   assert(cb != NULL, "CodeBlob is null");
   309   assert(cb != NULL, "CodeBlob is null");
   310   FOR_ALL_HEAPS(heap) {
   310   FOR_ALL_HEAPS(heap) {
   311     if ((*heap)->contains(cb)) {
   311     if ((*heap)->contains(cb)) {
   312       return *heap;
   312       return *heap;
   313     }
   313     }