hotspot/src/share/vm/gc_implementation/shared/markSweep.hpp
changeset 29701 f638fc81a3d0
parent 25492 d27050bdfb04
child 29792 8c6fa07f0869
equal deleted inserted replaced
29700:66239a99ec24 29701:f638fc81a3d0
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    24 
    24 
    25 #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_MARKSWEEP_HPP
    25 #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_MARKSWEEP_HPP
    26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_MARKSWEEP_HPP
    26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_MARKSWEEP_HPP
    27 
    27 
    28 #include "gc_interface/collectedHeap.hpp"
    28 #include "gc_interface/collectedHeap.hpp"
    29 #include "memory/universe.hpp"
    29 #include "memory/genOopClosures.hpp"
       
    30 #include "memory/iterator.hpp"
    30 #include "oops/markOop.hpp"
    31 #include "oops/markOop.hpp"
    31 #include "oops/oop.hpp"
    32 #include "oops/oop.hpp"
    32 #include "runtime/timer.hpp"
    33 #include "runtime/timer.hpp"
    33 #include "utilities/growableArray.hpp"
    34 #include "utilities/growableArray.hpp"
    34 #include "utilities/stack.hpp"
    35 #include "utilities/stack.hpp"
   180   void init(oop obj, markOop mark) {
   181   void init(oop obj, markOop mark) {
   181     _obj = obj;
   182     _obj = obj;
   182     _mark = mark;
   183     _mark = mark;
   183   }
   184   }
   184 
   185 
   185   void adjust_pointer() {
   186   void adjust_pointer();
   186     MarkSweep::adjust_pointer(&_obj);
   187   void restore();
   187   }
       
   188 
       
   189   void restore() {
       
   190     _obj->set_mark(_mark);
       
   191   }
       
   192 };
   188 };
   193 
   189 
   194 #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_MARKSWEEP_HPP
   190 #endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_MARKSWEEP_HPP