--- old/src/share/vm/gc_implementation/g1/vm_operations_g1.hpp 2011-01-27 10:33:01.781250000 +0100 +++ new/src/share/vm/gc_implementation/g1/vm_operations_g1.hpp 2011-01-27 10:33:01.062500000 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 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 @@ -45,7 +45,9 @@ VM_G1OperationWithAllocRequest(unsigned int gc_count_before, size_t word_size) : VM_GC_Operation(gc_count_before), - _word_size(word_size), _result(NULL), _pause_succeeded(false) { } + _word_size(word_size), _result(NULL), _pause_succeeded(false) { + _gc_cause = GCCause::_allocation_failure; + } HeapWord* result() { return _result; } bool pause_succeeded() { return _pause_succeeded; } };