comparison 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
comparison
equal deleted inserted replaced
17769:bc7714614ad8 17770:5af31f70a866
30 #include "memory/metaspaceGCThresholdUpdater.hpp" 30 #include "memory/metaspaceGCThresholdUpdater.hpp"
31 31
32 class ClassLoaderData; 32 class ClassLoaderData;
33 33
34 class MetaspaceTracer : public CHeapObj<mtTracing> { 34 class MetaspaceTracer : public CHeapObj<mtTracing> {
35 template <typename E>
36 void send_allocation_failure_event(ClassLoaderData *cld,
37 size_t word_size,
38 MetaspaceObj::Type objtype,
39 Metaspace::MetadataType mdtype) const;
35 public: 40 public:
36 void report_gc_threshold(size_t old_val, 41 void report_gc_threshold(size_t old_val,
37 size_t new_val, 42 size_t new_val,
38 MetaspaceGCThresholdUpdater::Type updater) const; 43 MetaspaceGCThresholdUpdater::Type updater) const;
39 void report_metaspace_allocation_failure(ClassLoaderData *cld, 44 void report_metaspace_allocation_failure(ClassLoaderData *cld,
40 size_t word_size, 45 size_t word_size,
41 MetaspaceObj::Type objtype, 46 MetaspaceObj::Type objtype,
42 Metaspace::MetadataType mdtype) const; 47 Metaspace::MetadataType mdtype) const;
48 void report_metadata_oom(ClassLoaderData *cld,
49 size_t word_size,
50 MetaspaceObj::Type objtype,
51 Metaspace::MetadataType mdtype) const;
52
43 }; 53 };
44 54
45 #endif // SHARE_VM_MEMORY_METASPACE_TRACER_HPP 55 #endif // SHARE_VM_MEMORY_METASPACE_TRACER_HPP