< prev index next > src/hotspot/share/gc/shenandoah/shenandoahUtils.hpp
Print this page
/*
* Copyright (c) 2017, 2021, Red Hat, Inc. All rights reserved.
+ * Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
#include "runtime/vmThread.hpp"
#include "runtime/vmOperations.hpp"
#include "services/memoryService.hpp"
class GCTimer;
class ShenandoahGCSession : public StackObj {
private:
ShenandoahHeap* const _heap;
GCTimer* const _timer;
GCTracer* const _tracer;
TraceMemoryManagerStats _trace_cycle;
public:
! ShenandoahGCSession(GCCause::Cause cause);
~ShenandoahGCSession();
};
/*
* ShenandoahGCPhaseTiming tracks Shenandoah specific timing information
#include "runtime/vmThread.hpp"
#include "runtime/vmOperations.hpp"
#include "services/memoryService.hpp"
class GCTimer;
+ class ShenandoahGeneration;
+
+ #define SHENANDOAH_RETURN_EVENT_MESSAGE(generation_type, prefix, postfix) \
+ switch (generation_type) { \
+ case NON_GEN: \
+ return prefix " (NON-GENERATIONAL)" postfix; \
+ case GLOBAL: \
+ return prefix " (GLOBAL)" postfix; \
+ case YOUNG: \
+ return prefix " (YOUNG)" postfix; \
+ case OLD: \
+ return prefix " (OLD)" postfix; \
+ default: \
+ ShouldNotReachHere(); \
+ return prefix " (UNKNOWN)" postfix; \
+ } \
class ShenandoahGCSession : public StackObj {
private:
ShenandoahHeap* const _heap;
+ ShenandoahGeneration* const _generation;
GCTimer* const _timer;
GCTracer* const _tracer;
TraceMemoryManagerStats _trace_cycle;
public:
! ShenandoahGCSession(GCCause::Cause cause, ShenandoahGeneration* generation);
~ShenandoahGCSession();
};
/*
* ShenandoahGCPhaseTiming tracks Shenandoah specific timing information
< prev index next >