src/hotspot/share/memory/metaspaceTracer.hpp
branchstuefe-new-metaspace-branch
changeset 58063 bdf136b8ae0e
parent 53244 9807daeb47c4
child 59272 54750b448264
equal deleted inserted replaced
58062:65cad575ace3 58063:bdf136b8ae0e
    25 #ifndef SHARE_MEMORY_METASPACETRACER_HPP
    25 #ifndef SHARE_MEMORY_METASPACETRACER_HPP
    26 #define SHARE_MEMORY_METASPACETRACER_HPP
    26 #define SHARE_MEMORY_METASPACETRACER_HPP
    27 
    27 
    28 #include "memory/allocation.hpp"
    28 #include "memory/allocation.hpp"
    29 #include "memory/metaspace.hpp"
    29 #include "memory/metaspace.hpp"
    30 #include "memory/metaspaceGCThresholdUpdater.hpp"
    30 #include "memory/metaspace/metaspaceEnums.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>
    35   template <typename E>
    36   void send_allocation_failure_event(ClassLoaderData *cld,
    36   void send_allocation_failure_event(ClassLoaderData *cld,
    37                                      size_t word_size,
    37                                      size_t word_size,
    38                                      MetaspaceObj::Type objtype,
    38                                      MetaspaceObj::Type objtype,
    39                                      Metaspace::MetadataType mdtype) const;
    39                                      metaspace::MetadataType mdtype) const;
    40  public:
    40  public:
    41   void report_gc_threshold(size_t old_val,
    41   void report_gc_threshold(size_t old_val,
    42                            size_t new_val,
    42                            size_t new_val,
    43                            MetaspaceGCThresholdUpdater::Type updater) const;
    43                            MetaspaceGCThresholdUpdater::Type updater) const;
    44   void report_metaspace_allocation_failure(ClassLoaderData *cld,
    44   void report_metaspace_allocation_failure(ClassLoaderData *cld,
    45                                            size_t word_size,
    45                                            size_t word_size,
    46                                            MetaspaceObj::Type objtype,
    46                                            MetaspaceObj::Type objtype,
    47                                            Metaspace::MetadataType mdtype) const;
    47                                            metaspace::MetadataType mdtype) const;
    48   void report_metadata_oom(ClassLoaderData *cld,
    48   void report_metadata_oom(ClassLoaderData *cld,
    49                            size_t word_size,
    49                            size_t word_size,
    50                            MetaspaceObj::Type objtype,
    50                            MetaspaceObj::Type objtype,
    51                            Metaspace::MetadataType mdtype) const;
    51                            metaspace::MetadataType mdtype) const;
    52 
    52 
    53 };
    53 };
    54 
    54 
    55 #endif // SHARE_MEMORY_METASPACETRACER_HPP
    55 #endif // SHARE_MEMORY_METASPACETRACER_HPP