< prev index next >

src/hotspot/share/gc/shared/weakProcessorPhases.hpp

Print this page




  29 #include "utilities/globalDefinitions.hpp"
  30 #include "utilities/macros.hpp"
  31 
  32 class BoolObjectClosure;
  33 class OopClosure;
  34 class OopStorage;
  35 
  36 class WeakProcessorPhases : AllStatic {
  37 public:
  38   typedef void (*Processor)(BoolObjectClosure*, OopClosure*);
  39 
  40   enum Phase {
  41     // Serial phases.
  42     JVMTI_ONLY(jvmti COMMA)
  43     JFR_ONLY(jfr COMMA)
  44 
  45     // OopStorage phases.
  46     jni,
  47     stringtable,
  48     resolved_method_table,

  49     vm
  50   };
  51 
  52   static const uint serial_phase_start = 0;
  53   static const uint serial_phase_count = jni;
  54   static const uint oop_storage_phase_start = serial_phase_count;
  55   static const uint oop_storage_phase_count = (vm + 1) - oop_storage_phase_start;
  56   static const uint phase_count = serial_phase_count + oop_storage_phase_count;
  57 
  58   static Phase phase(uint value);
  59   static uint index(Phase phase);
  60   // Indexes relative to the corresponding phase_start constant.
  61   static uint serial_index(Phase phase);
  62   static uint oop_storage_index(Phase phase);
  63 
  64   static bool is_serial(Phase phase);
  65   static bool is_oop_storage(Phase phase);
  66 
  67   static const char* description(Phase phase);
  68   static Processor processor(Phase phase); // Precondition: is_serial(phase)


  29 #include "utilities/globalDefinitions.hpp"
  30 #include "utilities/macros.hpp"
  31 
  32 class BoolObjectClosure;
  33 class OopClosure;
  34 class OopStorage;
  35 
  36 class WeakProcessorPhases : AllStatic {
  37 public:
  38   typedef void (*Processor)(BoolObjectClosure*, OopClosure*);
  39 
  40   enum Phase {
  41     // Serial phases.
  42     JVMTI_ONLY(jvmti COMMA)
  43     JFR_ONLY(jfr COMMA)
  44 
  45     // OopStorage phases.
  46     jni,
  47     stringtable,
  48     resolved_method_table,
  49     nmethod_keepalive,
  50     vm
  51   };
  52 
  53   static const uint serial_phase_start = 0;
  54   static const uint serial_phase_count = jni;
  55   static const uint oop_storage_phase_start = serial_phase_count;
  56   static const uint oop_storage_phase_count = (vm + 1) - oop_storage_phase_start;
  57   static const uint phase_count = serial_phase_count + oop_storage_phase_count;
  58 
  59   static Phase phase(uint value);
  60   static uint index(Phase phase);
  61   // Indexes relative to the corresponding phase_start constant.
  62   static uint serial_index(Phase phase);
  63   static uint oop_storage_index(Phase phase);
  64 
  65   static bool is_serial(Phase phase);
  66   static bool is_oop_storage(Phase phase);
  67 
  68   static const char* description(Phase phase);
  69   static Processor processor(Phase phase); // Precondition: is_serial(phase)
< prev index next >