src/share/vm/memory/metaspaceTracer.hpp
Print this page
rev 6070 : 8036699: Add trace event when a metaspace allocation fails
*** 24,38 ****
--- 24,47 ----
#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 frame;
+ class ouputStream;
+
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