src/share/vm/gc/parallel/psPromotionManager.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/gc/parallel

src/share/vm/gc/parallel/psPromotionManager.cpp

Print this page


   1 /*
   2  * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  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 "gc/parallel/mutableSpace.hpp"
  27 #include "gc/parallel/parallelScavengeHeap.hpp"
  28 #include "gc/parallel/psOldGen.hpp"
  29 #include "gc/parallel/psPromotionManager.inline.hpp"
  30 #include "gc/parallel/psScavenge.inline.hpp"
  31 #include "gc/shared/gcTrace.hpp"
  32 #include "gc/shared/preservedMarks.inline.hpp"
  33 #include "gc/shared/taskqueue.inline.hpp"
  34 #include "logging/log.hpp"
  35 #include "memory/allocation.inline.hpp"
  36 #include "memory/memRegion.hpp"
  37 #include "memory/padded.inline.hpp"

  38 #include "oops/instanceKlass.inline.hpp"
  39 #include "oops/instanceMirrorKlass.inline.hpp"
  40 #include "oops/objArrayKlass.inline.hpp"
  41 #include "oops/oop.inline.hpp"
  42 
  43 PaddedEnd<PSPromotionManager>* PSPromotionManager::_manager_array = NULL;
  44 OopStarTaskQueueSet*           PSPromotionManager::_stack_array_depth = NULL;
  45 PreservedMarksSet*             PSPromotionManager::_preserved_marks_set = NULL;
  46 PSOldGen*                      PSPromotionManager::_old_gen = NULL;
  47 MutableSpace*                  PSPromotionManager::_young_space = NULL;
  48 
  49 void PSPromotionManager::initialize() {
  50   ParallelScavengeHeap* heap = ParallelScavengeHeap::heap();
  51 
  52   _old_gen = heap->old_gen();
  53   _young_space = heap->young_gen()->to_space();
  54 
  55   const uint promotion_manager_num = ParallelGCThreads + 1;
  56 
  57   // To prevent false sharing, we pad the PSPromotionManagers


   1 /*
   2  * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  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 "gc/parallel/mutableSpace.hpp"
  27 #include "gc/parallel/parallelScavengeHeap.hpp"
  28 #include "gc/parallel/psOldGen.hpp"
  29 #include "gc/parallel/psPromotionManager.inline.hpp"
  30 #include "gc/parallel/psScavenge.inline.hpp"
  31 #include "gc/shared/gcTrace.hpp"
  32 #include "gc/shared/preservedMarks.inline.hpp"
  33 #include "gc/shared/taskqueue.inline.hpp"
  34 #include "logging/log.hpp"
  35 #include "memory/allocation.inline.hpp"
  36 #include "memory/memRegion.hpp"
  37 #include "memory/padded.inline.hpp"
  38 #include "memory/resourceArea.hpp"
  39 #include "oops/instanceKlass.inline.hpp"
  40 #include "oops/instanceMirrorKlass.inline.hpp"
  41 #include "oops/objArrayKlass.inline.hpp"
  42 #include "oops/oop.inline.hpp"
  43 
  44 PaddedEnd<PSPromotionManager>* PSPromotionManager::_manager_array = NULL;
  45 OopStarTaskQueueSet*           PSPromotionManager::_stack_array_depth = NULL;
  46 PreservedMarksSet*             PSPromotionManager::_preserved_marks_set = NULL;
  47 PSOldGen*                      PSPromotionManager::_old_gen = NULL;
  48 MutableSpace*                  PSPromotionManager::_young_space = NULL;
  49 
  50 void PSPromotionManager::initialize() {
  51   ParallelScavengeHeap* heap = ParallelScavengeHeap::heap();
  52 
  53   _old_gen = heap->old_gen();
  54   _young_space = heap->young_gen()->to_space();
  55 
  56   const uint promotion_manager_num = ParallelGCThreads + 1;
  57 
  58   // To prevent false sharing, we pad the PSPromotionManagers


src/share/vm/gc/parallel/psPromotionManager.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File