/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "precompiled.hpp"
#include "gc_implementation/shared/gcTimer.hpp"
#include "utilities/growableArray.hpp"
}
"We should have ended all started phases, before ending the GC");
}
}
}
}
}
}
}
}
}
_next_phase_level = 0;
}
}
int PhasesStack::pop() {
return _phase_indices[_next_phase_level];
}
return _next_phase_level;
}
clear();
}
TimePartitions::~TimePartitions() {
delete _phases;
}
_sum_of_pauses = 0;
_longest_pause = 0;
}
}
// FIXME: This should only be done for pause phases
_sum_of_pauses += pause;
}
}
}
}
}
return _sum_of_pauses;
}
return _longest_pause;
}
return _active_phases.count() > 0;
}
}
}
/////////////// Unit tests ///////////////
#ifndef PRODUCT
class TimePartitionPhasesIteratorTest {
public:
static void all() {
one_pause();
two_pauses();
}
static void validate_pause_phase(GCPhase* phase, int level, const char* name, jlong start, jlong end) {
}
static void one_pause() {
}
static void two_pauses() {
}
static void one_sub_pause_phase() {
}
static void max_nested_pause_phases() {
}
static void many_sub_pause_phases() {
}
static void many_sub_pause_phases2() {
}
};
class GCTimerTest {
public:
static void all() {
gc_start();
gc_end();
}
static void gc_start() {
}
static void gc_end() {
}
};
GCTimerTest::all();
}
#endif