/*
* 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 "memory/allocation.hpp"
#include "gc_implementation/g1/heapRegion.hpp"
public:
typedef enum {
CSet,
} ActionType;
typedef enum {
Eden,
Old,
} RegionType;
typedef enum {
} PhaseType;
private:
bool _active;
// Print an action event. This version is used in most scenarios and
// only prints the region's bottom. The parameters type and top are
// optional (the "not set" values are Unset and NULL).
// Print an action event. This version prints both the region's
// bottom and end. Used for Commit / Uncommit events.
// Print a phase event.
public:
// In some places we iterate over a list in order to generate output
// for the list's elements. By exposing this we can avoid this
// iteration if the printer is not active.
// Have to set this explicitly as we have to do this during the
// heap's initialize() method, not in the constructor.
// The methods below are convenient wrappers for the print() methods.
if (is_active()) {
}
}
if (is_active()) {
}
}
if (is_active()) {
}
}
}
if (is_active()) {
}
}
if (is_active()) {
}
}
if (is_active()) {
}
}
if (is_active()) {
}
}
if (is_active()) {
}
}
if (is_active()) {
}
}
if (is_active()) {
}
}
if (is_active()) {
if (!full) {
} else {
}
}
}
if (is_active()) {
if (!full) {
} else {
}
}
}
};
#endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1HRPRINTER_HPP