< prev index next >

src/share/vm/memory/metaspaceGCThresholdUpdater.hpp

Print this page




  26 #define SHARE_VM_MEMORY_METASPACEGCTHRESHOLDUPDATER_HPP
  27 
  28 #include "memory/allocation.hpp"
  29 #include "utilities/debug.hpp"
  30 
  31 class MetaspaceGCThresholdUpdater : public AllStatic {
  32  public:
  33   enum Type {
  34     ComputeNewSize,
  35     ExpandAndAllocate,
  36     Last
  37   };
  38 
  39   static const char* to_string(MetaspaceGCThresholdUpdater::Type updater) {
  40     switch (updater) {
  41       case ComputeNewSize:
  42         return "compute_new_size";
  43       case ExpandAndAllocate:
  44         return "expand_and_allocate";
  45       default:
  46         assert(false, err_msg("Got bad updater: %d", (int) updater));
  47         return NULL;
  48     };
  49   }
  50 };
  51 
  52 #endif // SHARE_VM_MEMORY_METASPACEGCTHRESHOLDUPDATER_HPP


  26 #define SHARE_VM_MEMORY_METASPACEGCTHRESHOLDUPDATER_HPP
  27 
  28 #include "memory/allocation.hpp"
  29 #include "utilities/debug.hpp"
  30 
  31 class MetaspaceGCThresholdUpdater : public AllStatic {
  32  public:
  33   enum Type {
  34     ComputeNewSize,
  35     ExpandAndAllocate,
  36     Last
  37   };
  38 
  39   static const char* to_string(MetaspaceGCThresholdUpdater::Type updater) {
  40     switch (updater) {
  41       case ComputeNewSize:
  42         return "compute_new_size";
  43       case ExpandAndAllocate:
  44         return "expand_and_allocate";
  45       default:
  46         assert(false, "Got bad updater: %d", (int) updater);
  47         return NULL;
  48     };
  49   }
  50 };
  51 
  52 #endif // SHARE_VM_MEMORY_METASPACEGCTHRESHOLDUPDATER_HPP
< prev index next >