equal
deleted
inserted
replaced
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 } |