src/share/vm/memory/metaspaceTracer.hpp

Print this page
rev 6083 : 8036699: Add trace event when a metaspace allocation fails
rev 6084 : 8036699: webrev.00 -> webrev.01

*** 24,38 **** --- 24,45 ---- #ifndef SHARE_VM_MEMORY_METASPACE_TRACER_HPP #define SHARE_VM_MEMORY_METASPACE_TRACER_HPP #include "memory/allocation.hpp" + #include "memory/metaspace.hpp" #include "memory/metaspaceGCThresholdUpdater.hpp" + class ClassLoaderData; + class MetaspaceTracer : public CHeapObj<mtTracing> { public: void report_gc_threshold(size_t old_val, size_t new_val, MetaspaceGCThresholdUpdater::Type updater) const; + void report_metaspace_allocation_failure(ClassLoaderData *cld, + size_t word_size, + MetaspaceObj::Type objtype, + Metaspace::MetadataType mdtype) const; }; #endif // SHARE_VM_MEMORY_METASPACE_TRACER_HPP