Mercurial > hg > graal-compiler
comparison src/share/vm/memory/metaspaceTracer.hpp @ 17769:bc7714614ad8
8036699: Add trace event when a metaspace allocation fails
Reviewed-by: jmasa, stefank
author | ehelin |
---|---|
date | Fri, 21 Mar 2014 10:20:00 +0100 |
parents | daef39043d2c |
children | 5af31f70a866 |
comparison
equal
deleted
inserted
replaced
17768:daef39043d2c | 17769:bc7714614ad8 |
---|---|
24 | 24 |
25 #ifndef SHARE_VM_MEMORY_METASPACE_TRACER_HPP | 25 #ifndef SHARE_VM_MEMORY_METASPACE_TRACER_HPP |
26 #define SHARE_VM_MEMORY_METASPACE_TRACER_HPP | 26 #define SHARE_VM_MEMORY_METASPACE_TRACER_HPP |
27 | 27 |
28 #include "memory/allocation.hpp" | 28 #include "memory/allocation.hpp" |
29 #include "memory/metaspace.hpp" | |
29 #include "memory/metaspaceGCThresholdUpdater.hpp" | 30 #include "memory/metaspaceGCThresholdUpdater.hpp" |
31 | |
32 class ClassLoaderData; | |
30 | 33 |
31 class MetaspaceTracer : public CHeapObj<mtTracing> { | 34 class MetaspaceTracer : public CHeapObj<mtTracing> { |
32 public: | 35 public: |
33 void report_gc_threshold(size_t old_val, | 36 void report_gc_threshold(size_t old_val, |
34 size_t new_val, | 37 size_t new_val, |
35 MetaspaceGCThresholdUpdater::Type updater) const; | 38 MetaspaceGCThresholdUpdater::Type updater) const; |
39 void report_metaspace_allocation_failure(ClassLoaderData *cld, | |
40 size_t word_size, | |
41 MetaspaceObj::Type objtype, | |
42 Metaspace::MetadataType mdtype) const; | |
36 }; | 43 }; |
37 | 44 |
38 #endif // SHARE_VM_MEMORY_METASPACE_TRACER_HPP | 45 #endif // SHARE_VM_MEMORY_METASPACE_TRACER_HPP |