< prev index next >

src/hotspot/share/gc/g1/concurrentMarkThread.cpp

Print this page
rev 47468 : 8189276: Make SuspendibleThreadSet and related code available to other GCs


   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 "classfile/classLoaderData.hpp"

  27 #include "gc/g1/concurrentMarkThread.inline.hpp"
  28 #include "gc/g1/g1Analytics.hpp"
  29 #include "gc/g1/g1CollectedHeap.inline.hpp"
  30 #include "gc/g1/g1ConcurrentMark.inline.hpp"
  31 #include "gc/g1/g1MMUTracker.hpp"
  32 #include "gc/g1/g1Policy.hpp"
  33 #include "gc/g1/suspendibleThreadSet.hpp"
  34 #include "gc/g1/vm_operations_g1.hpp"
  35 #include "gc/shared/concurrentGCPhaseManager.hpp"
  36 #include "gc/shared/gcId.hpp"
  37 #include "gc/shared/gcTrace.hpp"
  38 #include "gc/shared/gcTraceTime.inline.hpp"
  39 #include "logging/log.hpp"
  40 #include "memory/resourceArea.hpp"
  41 #include "runtime/vmThread.hpp"
  42 #include "utilities/debug.hpp"
  43 
  44 // ======= Concurrent Mark Thread ========
  45 
  46 // Check order in EXPAND_CURRENT_PHASES
  47 STATIC_ASSERT(ConcurrentGCPhaseManager::UNCONSTRAINED_PHASE <
  48               ConcurrentGCPhaseManager::IDLE_PHASE);
  49 
  50 #define EXPAND_CONCURRENT_PHASES(expander)                              \
  51   expander(ANY, = ConcurrentGCPhaseManager::UNCONSTRAINED_PHASE, NULL)  \
  52   expander(IDLE, = ConcurrentGCPhaseManager::IDLE_PHASE, NULL)          \
  53   expander(CONCURRENT_CYCLE,, "Concurrent Cycle")                       \




   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 "classfile/classLoaderData.hpp"
  27 #include "gc/common/suspendibleThreadSet.hpp"
  28 #include "gc/g1/concurrentMarkThread.inline.hpp"
  29 #include "gc/g1/g1Analytics.hpp"
  30 #include "gc/g1/g1CollectedHeap.inline.hpp"
  31 #include "gc/g1/g1ConcurrentMark.inline.hpp"
  32 #include "gc/g1/g1MMUTracker.hpp"
  33 #include "gc/g1/g1Policy.hpp"

  34 #include "gc/g1/vm_operations_g1.hpp"
  35 #include "gc/shared/concurrentGCPhaseManager.hpp"
  36 #include "gc/shared/gcId.hpp"
  37 #include "gc/shared/gcTrace.hpp"
  38 #include "gc/shared/gcTraceTime.inline.hpp"
  39 #include "logging/log.hpp"
  40 #include "memory/resourceArea.hpp"
  41 #include "runtime/vmThread.hpp"
  42 #include "utilities/debug.hpp"
  43 
  44 // ======= Concurrent Mark Thread ========
  45 
  46 // Check order in EXPAND_CURRENT_PHASES
  47 STATIC_ASSERT(ConcurrentGCPhaseManager::UNCONSTRAINED_PHASE <
  48               ConcurrentGCPhaseManager::IDLE_PHASE);
  49 
  50 #define EXPAND_CONCURRENT_PHASES(expander)                              \
  51   expander(ANY, = ConcurrentGCPhaseManager::UNCONSTRAINED_PHASE, NULL)  \
  52   expander(IDLE, = ConcurrentGCPhaseManager::IDLE_PHASE, NULL)          \
  53   expander(CONCURRENT_CYCLE,, "Concurrent Cycle")                       \


< prev index next >