src/hotspot/share/gc/shared/concurrentGCPhaseManager.hpp
changeset 49392 2956d0ece7a9
parent 47216 71c04702a3d5
child 53244 9807daeb47c4
equal deleted inserted replaced
49391:02076019c25d 49392:2956d0ece7a9
     1 /*
     1 /*
     2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2017, 2018, 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.
    36   // Special phase ids used by all GC's that use this facility.
    36   // Special phase ids used by all GC's that use this facility.
    37   static const int UNCONSTRAINED_PHASE = 0; // Unconstrained or no request.
    37   static const int UNCONSTRAINED_PHASE = 0; // Unconstrained or no request.
    38   static const int IDLE_PHASE = 1;          // Concurrent processing is idle.
    38   static const int IDLE_PHASE = 1;          // Concurrent processing is idle.
    39 
    39 
    40   // Stack of phase managers.
    40   // Stack of phase managers.
    41   class Stack VALUE_OBJ_CLASS_SPEC {
    41   class Stack {
    42     friend class ConcurrentGCPhaseManager;
    42     friend class ConcurrentGCPhaseManager;
    43 
    43 
    44   public:
    44   public:
    45     // Create an empty stack of phase managers.
    45     // Create an empty stack of phase managers.
    46     Stack();
    46     Stack();