--- old/src/share/vm/gc_implementation/shared/vmGCOperations.hpp 2011-01-27 10:33:20.609375000 +0100 +++ new/src/share/vm/gc_implementation/shared/vmGCOperations.hpp 2011-01-27 10:33:19.890625000 +0100 @@ -1,5 +1,5 @@ /* - * 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 @@ -138,6 +138,7 @@ 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; @@ -163,6 +164,7 @@ : VM_GC_Operation(gc_count_before), _size(size), _tlab(tlab) { + _gc_cause = GCCause::_allocation_failure; _res = NULL; } ~VM_GenCollectForAllocation() {}