equal
deleted
inserted
replaced
26 #include "memory/universe.hpp" |
26 #include "memory/universe.hpp" |
27 |
27 |
28 #include "gc/shared/gcArguments.hpp" |
28 #include "gc/shared/gcArguments.hpp" |
29 #include "gc/shared/gcTimer.hpp" |
29 #include "gc/shared/gcTimer.hpp" |
30 #include "gc/shared/gcTraceTime.inline.hpp" |
30 #include "gc/shared/gcTraceTime.inline.hpp" |
|
31 #include "gc/shared/locationPrinter.inline.hpp" |
31 #include "gc/shared/memAllocator.hpp" |
32 #include "gc/shared/memAllocator.hpp" |
32 #include "gc/shared/plab.hpp" |
33 #include "gc/shared/plab.hpp" |
33 |
34 |
34 #include "gc/shenandoah/shenandoahAllocTracker.hpp" |
35 #include "gc/shenandoah/shenandoahAllocTracker.hpp" |
35 #include "gc/shenandoah/shenandoahBarrierSet.hpp" |
36 #include "gc/shenandoah/shenandoahBarrierSet.hpp" |
1131 bool ShenandoahHeap::block_is_obj(const HeapWord* addr) const { |
1132 bool ShenandoahHeap::block_is_obj(const HeapWord* addr) const { |
1132 Space* sp = heap_region_containing(addr); |
1133 Space* sp = heap_region_containing(addr); |
1133 return sp->block_is_obj(addr); |
1134 return sp->block_is_obj(addr); |
1134 } |
1135 } |
1135 |
1136 |
|
1137 bool ShenandoahHeap::print_location(outputStream* st, void* addr) const { |
|
1138 return BlockLocationPrinter<ShenandoahHeap>::print_location(st, addr); |
|
1139 } |
|
1140 |
1136 jlong ShenandoahHeap::millis_since_last_gc() { |
1141 jlong ShenandoahHeap::millis_since_last_gc() { |
1137 double v = heuristics()->time_since_last_gc() * 1000; |
1142 double v = heuristics()->time_since_last_gc() * 1000; |
1138 assert(0 <= v && v <= max_jlong, "value should fit: %f", v); |
1143 assert(0 <= v && v <= max_jlong, "value should fit: %f", v); |
1139 return (jlong)v; |
1144 return (jlong)v; |
1140 } |
1145 } |