--- old/src/hotspot/share/gc/g1/heapRegion.cpp 2019-10-08 20:01:38.764844310 -0700 +++ new/src/hotspot/share/gc/g1/heapRegion.cpp 2019-10-08 20:01:38.396844298 -0700 @@ -28,6 +28,7 @@ #include "gc/g1/g1CollectedHeap.inline.hpp" #include "gc/g1/g1CollectionSet.hpp" #include "gc/g1/g1HeapRegionTraceType.hpp" +#include "gc/g1/g1MemoryNodeManager.hpp" #include "gc/g1/g1OopClosures.inline.hpp" #include "gc/g1/heapRegion.inline.hpp" #include "gc/g1/heapRegionBounds.inline.hpp" @@ -248,7 +249,8 @@ _index_in_opt_cset(InvalidCSetIndex), _young_index_in_cset(-1), _surv_rate_group(NULL), _age_index(-1), _prev_top_at_mark_start(NULL), _next_top_at_mark_start(NULL), - _recorded_rs_length(0), _predicted_elapsed_time_ms(0) + _recorded_rs_length(0), _predicted_elapsed_time_ms(0), + _node_index(G1MemoryNodeManager::UnknownNodeIndex) { _rem_set = new HeapRegionRemSet(bot, this); @@ -455,8 +457,13 @@ } else { st->print("| "); } - st->print_cr("|TAMS " PTR_FORMAT ", " PTR_FORMAT "| %s ", + st->print("|TAMS " PTR_FORMAT ", " PTR_FORMAT "| %s ", p2i(prev_top_at_mark_start()), p2i(next_top_at_mark_start()), rem_set()->get_state_str()); + if (UseNUMA) { + const int* node_ids = G1MemoryNodeManager::mgr()->node_ids(); + st->print("|Node ID %02d", node_ids[this->node_index()]); + } + st->print_cr(""); } class G1VerificationClosure : public BasicOopIterateClosure {