src/share/vm/gc_implementation/shared/vmGCOperations.hpp
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2011, Oracle and/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.
@@ -136,10 +136,11 @@
VM_GC_HeapInspection(outputStream* out, bool request_full_gc,
bool need_prologue) :
VM_GC_Operation(0 /* total collections, dummy, ignored */,
0 /* total full collections, dummy, ignored */,
request_full_gc) {
+ _gc_cause = GCCause::_heap_inspection;
_out = out;
_full_gc = request_full_gc;
_need_prologue = need_prologue;
}
@@ -161,10 +162,11 @@
bool tlab,
unsigned int gc_count_before)
: VM_GC_Operation(gc_count_before),
_size(size),
_tlab(tlab) {
+ _gc_cause = GCCause::_allocation_failure;
_res = NULL;
}
~VM_GenCollectForAllocation() {}
virtual VMOp_Type type() const { return VMOp_GenCollectForAllocation; }
virtual void doit();