< prev index next >

src/hotspot/share/gc/parallel/psMarkSweepDecorator.cpp

Print this page
rev 56811 : [mq]: 8189737-heapregion-remove-space-inheritance


  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/systemDictionary.hpp"
  27 #include "gc/parallel/objectStartArray.hpp"
  28 #include "gc/parallel/parallelScavengeHeap.hpp"
  29 #include "gc/parallel/parMarkBitMap.inline.hpp"
  30 #include "gc/parallel/psMarkSweep.hpp"
  31 #include "gc/parallel/psMarkSweepDecorator.hpp"
  32 #include "gc/parallel/psParallelCompact.inline.hpp"
  33 #include "gc/serial/markSweep.inline.hpp"
  34 #include "gc/shared/spaceDecorator.hpp"
  35 #include "memory/iterator.inline.hpp"
  36 #include "oops/oop.inline.hpp"
  37 #include "runtime/prefetch.inline.hpp"
  38 
  39 PSMarkSweepDecorator* PSMarkSweepDecorator::_destination_decorator = NULL;
  40 
  41 
  42 void PSMarkSweepDecorator::set_destination_decorator_tenured() {
  43   ParallelScavengeHeap* heap = ParallelScavengeHeap::heap();
  44   _destination_decorator = heap->old_gen()->object_mark_sweep();
  45 }
  46 
  47 void PSMarkSweepDecorator::advance_destination_decorator() {
  48   ParallelScavengeHeap* heap = ParallelScavengeHeap::heap();
  49 
  50   assert(_destination_decorator != NULL, "Sanity");
  51 
  52   PSMarkSweepDecorator* first = heap->old_gen()->object_mark_sweep();
  53   PSMarkSweepDecorator* second = heap->young_gen()->eden_mark_sweep();
  54   PSMarkSweepDecorator* third = heap->young_gen()->from_mark_sweep();




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/systemDictionary.hpp"
  27 #include "gc/parallel/objectStartArray.hpp"
  28 #include "gc/parallel/parallelScavengeHeap.hpp"
  29 #include "gc/parallel/parMarkBitMap.inline.hpp"
  30 #include "gc/parallel/psMarkSweep.hpp"
  31 #include "gc/parallel/psMarkSweepDecorator.hpp"
  32 #include "gc/parallel/psParallelCompact.inline.hpp"
  33 #include "gc/serial/markSweep.inline.hpp"
  34 #include "gc/shared/spaceDecorator.inline.hpp"
  35 #include "memory/iterator.inline.hpp"
  36 #include "oops/oop.inline.hpp"
  37 #include "runtime/prefetch.inline.hpp"
  38 
  39 PSMarkSweepDecorator* PSMarkSweepDecorator::_destination_decorator = NULL;
  40 
  41 
  42 void PSMarkSweepDecorator::set_destination_decorator_tenured() {
  43   ParallelScavengeHeap* heap = ParallelScavengeHeap::heap();
  44   _destination_decorator = heap->old_gen()->object_mark_sweep();
  45 }
  46 
  47 void PSMarkSweepDecorator::advance_destination_decorator() {
  48   ParallelScavengeHeap* heap = ParallelScavengeHeap::heap();
  49 
  50   assert(_destination_decorator != NULL, "Sanity");
  51 
  52   PSMarkSweepDecorator* first = heap->old_gen()->object_mark_sweep();
  53   PSMarkSweepDecorator* second = heap->young_gen()->eden_mark_sweep();
  54   PSMarkSweepDecorator* third = heap->young_gen()->from_mark_sweep();


< prev index next >