src/share/vm/gc_implementation/g1/vm_operations_g1.hpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2001, 2010, 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. --- 1,7 ---- /* ! * 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 43,53 **** public: 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) { } HeapWord* result() { return _result; } bool pause_succeeded() { return _pause_succeeded; } }; class VM_G1CollectFull: public VM_GC_Operation { --- 43,55 ---- public: 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) { ! _gc_cause = GCCause::_allocation_failure; ! } HeapWord* result() { return _result; } bool pause_succeeded() { return _pause_succeeded; } }; class VM_G1CollectFull: public VM_GC_Operation {