< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahStackWatermark.hpp

Print this page

43   BarrierSetNMethod* _bs_nm;
44 
45   void do_nmethod(nmethod* nm);
46 public:
47   ShenandoahOnStackNMethodClosure();
48 };
49 
50 class ShenandoahStackWatermark : public StackWatermark {
51 private:
52   // Start epochs from 1 to catch uninitialized paths.
53   // Wrap the epoch around smaller range to avoid truncation
54   // in StackWatermark encoding and verify the wraparound in tests.
55   static constexpr uint32_t MIN_EPOCH_ID = 1;
56   static constexpr uint32_t MAX_EPOCH_ID = (1 << 10);
57 
58   static uint32_t                      _epoch_id;
59   ShenandoahHeap* const                _heap;
60   ThreadLocalAllocStats                _stats;
61 
62   // Closures

63   ShenandoahKeepAliveClosure           _keep_alive_cl;
64   ShenandoahEvacuateUpdateRootsClosure _evac_update_oop_cl;
65   ShenandoahOnStackNMethodClosure      _nm_cl;
66 public:
67   ShenandoahStackWatermark(JavaThread* jt);
68   ThreadLocalAllocStats& stats();
69 
70   static void change_epoch_id();
71 private:
72   OopClosure* closure_from_context(void* context);
73   uint32_t epoch_id() const;
74   void start_processing_impl(void* context);
75   void process(const frame& fr, RegisterMap& register_map, void* context);
76 
77   void retire_tlab();
78 };
79 
80 #endif // SHARE_GC_SHENANDOAH_SHENANDOAHSTACKWATERMARK_HPP

43   BarrierSetNMethod* _bs_nm;
44 
45   void do_nmethod(nmethod* nm);
46 public:
47   ShenandoahOnStackNMethodClosure();
48 };
49 
50 class ShenandoahStackWatermark : public StackWatermark {
51 private:
52   // Start epochs from 1 to catch uninitialized paths.
53   // Wrap the epoch around smaller range to avoid truncation
54   // in StackWatermark encoding and verify the wraparound in tests.
55   static constexpr uint32_t MIN_EPOCH_ID = 1;
56   static constexpr uint32_t MAX_EPOCH_ID = (1 << 10);
57 
58   static uint32_t                      _epoch_id;
59   ShenandoahHeap* const                _heap;
60   ThreadLocalAllocStats                _stats;
61 
62   // Closures
63   ShenandoahNoOpClosure                _no_op_cl;
64   ShenandoahKeepAliveClosure           _keep_alive_cl;
65   ShenandoahEvacuateUpdateRootsClosure _evac_update_oop_cl;
66   ShenandoahOnStackNMethodClosure      _nm_cl;
67 public:
68   ShenandoahStackWatermark(JavaThread* jt);
69   ThreadLocalAllocStats& stats();
70 
71   static void change_epoch_id();
72 private:
73   OopClosure* closure_from_context(void* context);
74   uint32_t epoch_id() const;
75   void start_processing_impl(void* context);
76   void process(const frame& fr, RegisterMap& register_map, void* context);
77 
78   void retire_tlab();
79 };
80 
81 #endif // SHARE_GC_SHENANDOAH_SHENANDOAHSTACKWATERMARK_HPP
< prev index next >