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

changeset 7687
af8f16ac392c
parent 7686
fb69749583e8
child 7994
04ff2f6cd0eb
     1.1 --- a/src/share/vm/gc_implementation/g1/vm_operations_g1.hpp	Thu Apr 09 15:58:49 2015 +0200
     1.2 +++ b/src/share/vm/gc_implementation/g1/vm_operations_g1.hpp	Thu Apr 09 15:59:26 2015 +0200
     1.3 @@ -36,10 +36,8 @@
     1.4  //     - VM_G1CollectForAllocation
     1.5  //     - VM_G1IncCollectionPause
     1.6  
     1.7 -class VM_G1OperationWithAllocRequest: public VM_GC_Operation {
     1.8 +class VM_G1OperationWithAllocRequest : public VM_CollectForAllocation {
     1.9  protected:
    1.10 -  size_t    _word_size;
    1.11 -  HeapWord* _result;
    1.12    bool      _pause_succeeded;
    1.13    AllocationContext_t _allocation_context;
    1.14  
    1.15 @@ -47,9 +45,8 @@
    1.16    VM_G1OperationWithAllocRequest(uint           gc_count_before,
    1.17                                   size_t         word_size,
    1.18                                   GCCause::Cause gc_cause)
    1.19 -    : VM_GC_Operation(gc_count_before, gc_cause),
    1.20 -      _word_size(word_size), _result(NULL), _pause_succeeded(false) { }
    1.21 -  HeapWord* result() { return _result; }
    1.22 +    : VM_CollectForAllocation(word_size, gc_count_before, gc_cause),
    1.23 +      _pause_succeeded(false) {}
    1.24    bool pause_succeeded() { return _pause_succeeded; }
    1.25    void set_allocation_context(AllocationContext_t context) { _allocation_context = context; }
    1.26    AllocationContext_t  allocation_context() { return _allocation_context; }

mercurial