hotspot/src/share/vm/memory/metaspaceTracer.hpp
changeset 23469 0a4d02776968
parent 23468 6bb416a59349
child 30578 8b6c44532ca2
equal deleted inserted replaced
23468:6bb416a59349 23469:0a4d02776968
    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