Mercurial > hg > graal-compiler
diff src/share/vm/memory/metaspaceTracer.hpp @ 17770:5af31f70a866
8036701: Add trace event when a metaspace throws out of memory error
Reviewed-by: stefank, mgerdin
author | ehelin |
---|---|
date | Fri, 21 Mar 2014 10:28:07 +0100 |
parents | bc7714614ad8 |
children |
line wrap: on
line diff
--- a/src/share/vm/memory/metaspaceTracer.hpp Fri Mar 21 10:20:00 2014 +0100 +++ b/src/share/vm/memory/metaspaceTracer.hpp Fri Mar 21 10:28:07 2014 +0100 @@ -32,6 +32,11 @@ class ClassLoaderData; class MetaspaceTracer : public CHeapObj<mtTracing> { + template <typename E> + void send_allocation_failure_event(ClassLoaderData *cld, + size_t word_size, + MetaspaceObj::Type objtype, + Metaspace::MetadataType mdtype) const; public: void report_gc_threshold(size_t old_val, size_t new_val, @@ -40,6 +45,11 @@ size_t word_size, MetaspaceObj::Type objtype, Metaspace::MetadataType mdtype) const; + void report_metadata_oom(ClassLoaderData *cld, + size_t word_size, + MetaspaceObj::Type objtype, + Metaspace::MetadataType mdtype) const; + }; #endif // SHARE_VM_MEMORY_METASPACE_TRACER_HPP