< prev index next >

src/share/vm/aot/aotCodeHeap.cpp

Print this page
rev 13198 : 8183573: Refactor CodeHeap and AOTCodeHeap to devirtualize hot methods
Reviewed-by: rbackman

*** 256,266 **** // Create table for searching AOTCompiledMethod based on pc. _code_to_aot = NEW_C_HEAP_ARRAY(CodeToAMethod, _method_count, mtCode); memset(_code_to_aot, 0, _method_count * sizeof(CodeToAMethod)); - _low_boundary = _code_space; _memory.set_low_boundary((char *)_code_space); _memory.set_high_boundary((char *)_code_space); _memory.set_low((char *)_code_space); _memory.set_high((char *)_code_space); --- 256,265 ----
*** 798,816 **** AOTCompiledMethod* aot = _code_to_aot[aot_index]._aot; assert(aot != NULL, "should find registered aot method"); return aot; } AOTCompiledMethod* AOTCodeHeap::find_aot(address p) const { assert(contains(p), "should be here"); return (AOTCompiledMethod *)find_start(p); } - CodeBlob* AOTCodeHeap::find_blob_unsafe(void* start) const { - return (CodeBlob*)AOTCodeHeap::find_start(start); - } - void AOTCodeHeap::oops_do(OopClosure* f) { for (int i = 0; i < _oop_got_size; i++) { oop* p = &_oop_got[i]; if (*p == NULL) continue; // skip non-oops f->do_oop(p); --- 797,815 ---- AOTCompiledMethod* aot = _code_to_aot[aot_index]._aot; assert(aot != NULL, "should find registered aot method"); return aot; } + CodeBlob* AOTCodeHeap::find_blob_unsafe(void* start) const { + return (CodeBlob*)AOTCodeHeap::find_start(start); + } + AOTCompiledMethod* AOTCodeHeap::find_aot(address p) const { assert(contains(p), "should be here"); return (AOTCompiledMethod *)find_start(p); } void AOTCodeHeap::oops_do(OopClosure* f) { for (int i = 0; i < _oop_got_size; i++) { oop* p = &_oop_got[i]; if (*p == NULL) continue; // skip non-oops f->do_oop(p);
< prev index next >