equal
deleted
inserted
replaced
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 #include "precompiled.hpp" |
24 #include "precompiled.hpp" |
25 #include "gc/shared/gcHeapSummary.hpp" |
25 #include "gc/shared/gcHeapSummary.hpp" |
|
26 #include "gc/shared/locationPrinter.hpp" |
26 #include "gc/shared/suspendibleThreadSet.hpp" |
27 #include "gc/shared/suspendibleThreadSet.hpp" |
27 #include "gc/z/zCollectedHeap.hpp" |
28 #include "gc/z/zCollectedHeap.hpp" |
28 #include "gc/z/zGlobals.hpp" |
29 #include "gc/z/zGlobals.hpp" |
29 #include "gc/z/zHeap.inline.hpp" |
30 #include "gc/z/zHeap.inline.hpp" |
30 #include "gc/z/zNMethod.hpp" |
31 #include "gc/z/zNMethod.hpp" |
245 _heap.object_iterate(cl, true /* visit_weaks */); |
246 _heap.object_iterate(cl, true /* visit_weaks */); |
246 } |
247 } |
247 |
248 |
248 void ZCollectedHeap::safe_object_iterate(ObjectClosure* cl) { |
249 void ZCollectedHeap::safe_object_iterate(ObjectClosure* cl) { |
249 _heap.object_iterate(cl, true /* visit_weaks */); |
250 _heap.object_iterate(cl, true /* visit_weaks */); |
250 } |
|
251 |
|
252 HeapWord* ZCollectedHeap::block_start(const void* addr) const { |
|
253 return (HeapWord*)_heap.block_start((uintptr_t)addr); |
|
254 } |
|
255 |
|
256 bool ZCollectedHeap::block_is_obj(const HeapWord* addr) const { |
|
257 return _heap.block_is_obj((uintptr_t)addr); |
|
258 } |
251 } |
259 |
252 |
260 void ZCollectedHeap::register_nmethod(nmethod* nm) { |
253 void ZCollectedHeap::register_nmethod(nmethod* nm) { |
261 ZNMethod::register_nmethod(nm); |
254 ZNMethod::register_nmethod(nm); |
262 } |
255 } |
354 |
347 |
355 void ZCollectedHeap::print_tracing_info() const { |
348 void ZCollectedHeap::print_tracing_info() const { |
356 // Does nothing |
349 // Does nothing |
357 } |
350 } |
358 |
351 |
|
352 bool ZCollectedHeap::print_location(outputStream* st, void* addr) const { |
|
353 if (LocationPrinter::is_valid_obj(addr)) { |
|
354 st->print(INTPTR_FORMAT " is a %s oop: ", p2i(addr), |
|
355 ZAddress::is_good(reinterpret_cast<uintptr_t>(addr)) ? "good" : "bad"); |
|
356 cast_to_oop(addr)->print_on(st); |
|
357 return true; |
|
358 } |
|
359 return false; |
|
360 } |
|
361 |
359 void ZCollectedHeap::verify(VerifyOption option /* ignored */) { |
362 void ZCollectedHeap::verify(VerifyOption option /* ignored */) { |
360 _heap.verify(); |
363 _heap.verify(); |
361 } |
364 } |
362 |
365 |
363 bool ZCollectedHeap::is_oop(oop object) const { |
366 bool ZCollectedHeap::is_oop(oop object) const { |