< prev index next >

src/hotspot/share/gc/g1/g1HeapTransition.hpp

Print this page
rev 56834 : imported patch 8220312.stat.2


  22  *
  23  */
  24 
  25 #ifndef SHARE_GC_G1_G1HEAPTRANSITION_HPP
  26 #define SHARE_GC_G1_G1HEAPTRANSITION_HPP
  27 
  28 #include "gc/shared/plab.hpp"
  29 #include "memory/metaspace/metaspaceSizesSnapshot.hpp"
  30 
  31 class G1CollectedHeap;
  32 
  33 class G1HeapTransition {
  34   struct Data {
  35     size_t _eden_length;
  36     size_t _survivor_length;
  37     size_t _old_length;
  38     size_t _archive_length;
  39     size_t _humongous_length;
  40     const metaspace::MetaspaceSizesSnapshot _meta_sizes;
  41 





  42     Data(G1CollectedHeap* g1_heap);

  43   };
  44 
  45   G1CollectedHeap* _g1_heap;
  46   Data _before;
  47 
  48 public:
  49   G1HeapTransition(G1CollectedHeap* g1_heap);
  50 
  51   void print();
  52 };
  53 
  54 #endif // SHARE_GC_G1_G1HEAPTRANSITION_HPP


  22  *
  23  */
  24 
  25 #ifndef SHARE_GC_G1_G1HEAPTRANSITION_HPP
  26 #define SHARE_GC_G1_G1HEAPTRANSITION_HPP
  27 
  28 #include "gc/shared/plab.hpp"
  29 #include "memory/metaspace/metaspaceSizesSnapshot.hpp"
  30 
  31 class G1CollectedHeap;
  32 
  33 class G1HeapTransition {
  34   struct Data {
  35     size_t _eden_length;
  36     size_t _survivor_length;
  37     size_t _old_length;
  38     size_t _archive_length;
  39     size_t _humongous_length;
  40     const metaspace::MetaspaceSizesSnapshot _meta_sizes;
  41 
  42     // Only includes current eden regions.
  43     uint* _eden_length_per_node;
  44     // Only includes current survivor regions.
  45     uint* _survivor_length_per_node;
  46 
  47     Data(G1CollectedHeap* g1_heap);
  48     ~Data();
  49   };
  50 
  51   G1CollectedHeap* _g1_heap;
  52   Data _before;
  53 
  54 public:
  55   G1HeapTransition(G1CollectedHeap* g1_heap);
  56 
  57   void print();
  58 };
  59 
  60 #endif // SHARE_GC_G1_G1HEAPTRANSITION_HPP
< prev index next >