markSweep.cpp revision 4141
1472N/A * or visit www.oracle.com if you need additional information or have any
1879N/A#include "precompiled.hpp"
1879N/A#include "compiler/compileBroker.hpp"
4141N/A#include "gc_implementation/shared/gcTimer.hpp"
4141N/A#include "gc_implementation/shared/gcTrace.hpp"
1879N/A#include "gc_implementation/shared/markSweep.inline.hpp"
1879N/A#include "gc_interface/collectedHeap.inline.hpp"
1879N/A#include "oops/methodDataOop.hpp"
1879N/A#include "oops/objArrayKlass.inline.hpp"
1879N/A#include "oops/oop.inline.hpp"
0N/A#ifdef VALIDATE_MARK_SWEEP
941N/A if (PrintRevisitStats) {
0N/A follow_stack();
941N/A if (PrintRevisitStats) {
989N/ACodeBlobToOopClosure MarkSweep::follow_code_root_closure(&MarkSweep::follow_root_closure, /*do_marking=*/ true);
2062N/Avoid MarkSweep::MarkAndPushClosure::do_oop(oop* p) { assert(*p == NULL || (*p)->is_oop(), ""); mark_and_push(p); }
0N/A#ifdef VALIDATE_MARK_SWEEP
0N/A if (!ValidateMarkSweep)
0N/A if (_pointer_tracking) {
113N/A AdjusterTracker() {}
0N/A if (ValidateMarkSweep) {
0N/A _pointer_tracking = true;
0N/A if (ValidateMarkSweep) {
0N/A _pointer_tracking = false;
0N/A if (ValidateMarkSweep) {
0N/A if (ValidateMarkSweep) {
0N/A if (ValidateMarkSweep) {
0N/A if (ValidateMarkSweep) {
0N/A if (RecordMarkSweepCompaction) {
0N/A if (RecordMarkSweepCompaction) {
0N/A if (!RecordMarkSweepCompaction) {
113N/A tty->print_cr(" Was in oop " PTR_FORMAT ", size " SIZE_FORMAT ", at offset " SIZE_FORMAT, old_oop, sz, offset);
0N/A tty->print_cr(" Now in oop " PTR_FORMAT ", actual address " PTR_FORMAT, new_oop, new_oop + offset);
113N/Avoid MarkSweep::KeepAliveClosure::do_oop(oop* p) { MarkSweep::KeepAliveClosure::do_oop_work(p); }
113N/Avoid MarkSweep::KeepAliveClosure::do_oop(narrowOop* p) { MarkSweep::KeepAliveClosure::do_oop_work(p); }
4141N/Avoid marksweep_init() {
0N/A if (TraceMarkSweep)