< prev index next >

src/share/vm/gc/shared/vmGCOperations.hpp

Print this page
rev 9626 : 8065331: Add trace events for failed allocations

*** 164,175 **** protected: size_t _word_size; // Size of object to be allocated (in number of words) HeapWord* _result; // Allocation result (NULL if allocation failed) public: ! VM_CollectForAllocation(size_t word_size, uint gc_count_before, GCCause::Cause cause) ! : VM_GC_Operation(gc_count_before, cause), _result(NULL), _word_size(word_size) {} HeapWord* result() const { return _result; } }; --- 164,174 ---- protected: size_t _word_size; // Size of object to be allocated (in number of words) HeapWord* _result; // Allocation result (NULL if allocation failed) public: ! VM_CollectForAllocation(size_t word_size, uint gc_count_before, GCCause::Cause cause); HeapWord* result() const { return _result; } };
*** 218,231 **** VM_CollectForMetadataAllocation(ClassLoaderData* loader_data, size_t size, Metaspace::MetadataType mdtype, uint gc_count_before, uint full_gc_count_before, ! GCCause::Cause gc_cause) ! : VM_GC_Operation(gc_count_before, gc_cause, full_gc_count_before, true), ! _loader_data(loader_data), _size(size), _mdtype(mdtype), _result(NULL) { ! } virtual VMOp_Type type() const { return VMOp_CollectForMetadataAllocation; } virtual void doit(); MetaWord* result() const { return _result; } --- 217,227 ---- VM_CollectForMetadataAllocation(ClassLoaderData* loader_data, size_t size, Metaspace::MetadataType mdtype, uint gc_count_before, uint full_gc_count_before, ! GCCause::Cause gc_cause); virtual VMOp_Type type() const { return VMOp_CollectForMetadataAllocation; } virtual void doit(); MetaWord* result() const { return _result; }
< prev index next >