diff src/share/vm/memory/metaspaceTracer.hpp @ 5983: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
line wrap: on
line diff
--- a/src/share/vm/memory/metaspaceTracer.hpp	Fri Mar 21 10:17:47 2014 +0100
+++ b/src/share/vm/memory/metaspaceTracer.hpp	Fri Mar 21 10:20:00 2014 +0100
@@ -26,13 +26,20 @@
 #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