--- old/src/share/vm/aot/aotCodeHeap.cpp 2017-04-25 16:44:00.367176399 +0200 +++ new/src/share/vm/aot/aotCodeHeap.cpp 2017-04-25 16:44:00.223176404 +0200 @@ -26,6 +26,8 @@ #include "aot/aotCodeHeap.hpp" #include "aot/aotLoader.hpp" #include "classfile/javaAssertions.hpp" +#include "gc/shared/cardTable.hpp" +#include "gc/shared/cardTableModRefBS.hpp" #include "gc/g1/heapRegion.hpp" #include "gc/shared/gcLocker.hpp" #include "interpreter/abstractInterpreter.hpp" @@ -529,7 +531,7 @@ CollectedHeap* heap = Universe::heap(); CardTableModRefBS* ct = (CardTableModRefBS*)(heap->barrier_set()); - SET_AOT_GLOBAL_SYMBOL_VALUE("_aot_card_table_address", address, ct->byte_map_base); + SET_AOT_GLOBAL_SYMBOL_VALUE("_aot_card_table_address", address, ct->card_table()->byte_map_base()); SET_AOT_GLOBAL_SYMBOL_VALUE("_aot_heap_top_address", address, (heap->supports_inline_contig_alloc() ? heap->top_addr() : NULL)); SET_AOT_GLOBAL_SYMBOL_VALUE("_aot_heap_end_address", address, (heap->supports_inline_contig_alloc() ? heap->end_addr() : NULL)); SET_AOT_GLOBAL_SYMBOL_VALUE("_aot_polling_page", address, os::get_polling_page());