< prev index next >

src/share/vm/gc/g1/g1SATBCardTableModRefBS.cpp

Print this page

        

*** 26,35 **** --- 26,36 ---- #include "gc/g1/g1CollectedHeap.inline.hpp" #include "gc/g1/g1SATBCardTableModRefBS.hpp" #include "gc/g1/heapRegion.hpp" #include "gc/g1/satbMarkQueue.hpp" #include "gc/shared/memset_with_concurrent_readers.hpp" + #include "logging/log.hpp" #include "oops/oop.inline.hpp" #include "runtime/atomic.inline.hpp" #include "runtime/mutexLocker.hpp" #include "runtime/orderAccess.inline.hpp" #include "runtime/thread.inline.hpp"
*** 145,165 **** _byte_map = (jbyte*) mapper->reserved().start(); byte_map_base = _byte_map - (uintptr_t(low_bound) >> card_shift); assert(byte_for(low_bound) == &_byte_map[0], "Checking start of map"); assert(byte_for(high_bound-1) <= &_byte_map[_last_valid_index], "Checking end of map"); ! if (TraceCardTableModRefBS) { ! gclog_or_tty->print_cr("G1SATBCardTableModRefBS::G1SATBCardTableModRefBS: "); ! gclog_or_tty->print_cr(" " ! " &_byte_map[0]: " INTPTR_FORMAT ! " &_byte_map[_last_valid_index]: " INTPTR_FORMAT, ! p2i(&_byte_map[0]), ! p2i(&_byte_map[_last_valid_index])); ! gclog_or_tty->print_cr(" " ! " byte_map_base: " INTPTR_FORMAT, ! p2i(byte_map_base)); ! } } void G1SATBCardTableLoggingModRefBS::write_ref_field_work(void* field, oop new_val, --- 146,159 ---- _byte_map = (jbyte*) mapper->reserved().start(); byte_map_base = _byte_map - (uintptr_t(low_bound) >> card_shift); assert(byte_for(low_bound) == &_byte_map[0], "Checking start of map"); assert(byte_for(high_bound-1) <= &_byte_map[_last_valid_index], "Checking end of map"); ! log_trace(gc, barrier)("G1SATBCardTableModRefBS::G1SATBCardTableModRefBS: "); ! log_trace(gc, barrier)(" &_byte_map[0]: " INTPTR_FORMAT " &_byte_map[_last_valid_index]: " INTPTR_FORMAT, ! p2i(&_byte_map[0]), p2i(&_byte_map[_last_valid_index])); ! log_trace(gc, barrier)(" byte_map_base: " INTPTR_FORMAT, p2i(byte_map_base)); } void G1SATBCardTableLoggingModRefBS::write_ref_field_work(void* field, oop new_val,
< prev index next >