index

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

Print this page
rev 8854 : 8065331: Add trace events for failed allocations
Reviewed-by:

*** 24,33 **** --- 24,34 ---- #ifndef SHARE_VM_GC_SHARED_VMGCOPERATIONS_HPP #define SHARE_VM_GC_SHARED_VMGCOPERATIONS_HPP #include "gc/shared/collectedHeap.hpp" + #include "gc/shared/gcId.hpp" #include "gc/shared/genCollectedHeap.hpp" #include "memory/heapInspection.hpp" #include "prims/jvmtiExport.hpp" #include "runtime/handles.hpp" #include "runtime/jniHandles.hpp"
*** 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; } }; --- 165,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); HeapWord* result() const { return _result; } };
*** 216,229 **** public: 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; } bool initiate_concurrent_GC(); --- 216,226 ---- public: 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; } bool initiate_concurrent_GC();
index