src/share/vm/services/memTrackWorker.hpp

Print this page
rev 3953 : JDK-8005012: Add WB APIs to better support NMT testing
Summary:


  90   ~MemTrackWorker();
  91   _NOINLINE_ void* operator new(size_t size);
  92   _NOINLINE_ void* operator new(size_t size, const std::nothrow_t& nothrow_constant);
  93 
  94   void start();
  95   void run();
  96 
  97   inline bool has_error() const { return _has_error; }
  98 
  99   // task at synchronization point
 100   void at_sync_point(MemRecorder* pending_recorders, int number_of_classes);
 101 
 102   // for debugging purpose, they are not thread safe.
 103   NOT_PRODUCT(static int count_recorder(const MemRecorder* head);)
 104   NOT_PRODUCT(int count_pending_recorders() const;)
 105 
 106   NOT_PRODUCT(int _sync_point_count;)
 107   NOT_PRODUCT(int _merge_count;)
 108   NOT_PRODUCT(int _last_gen_in_use;)
 109 

 110   inline int generations_in_use() const {
 111     return (_tail >= _head ? (_tail - _head + 1) : (MAX_GENERATIONS - (_head - _tail) + 1));
 112   }
 113 };
 114 
 115 #endif // SHARE_VM_SERVICES_MEM_TRACK_WORKER_HPP


  90   ~MemTrackWorker();
  91   _NOINLINE_ void* operator new(size_t size);
  92   _NOINLINE_ void* operator new(size_t size, const std::nothrow_t& nothrow_constant);
  93 
  94   void start();
  95   void run();
  96 
  97   inline bool has_error() const { return _has_error; }
  98 
  99   // task at synchronization point
 100   void at_sync_point(MemRecorder* pending_recorders, int number_of_classes);
 101 
 102   // for debugging purpose, they are not thread safe.
 103   NOT_PRODUCT(static int count_recorder(const MemRecorder* head);)
 104   NOT_PRODUCT(int count_pending_recorders() const;)
 105 
 106   NOT_PRODUCT(int _sync_point_count;)
 107   NOT_PRODUCT(int _merge_count;)
 108   NOT_PRODUCT(int _last_gen_in_use;)
 109 
 110   // how many generations are queued
 111   inline int generations_in_use() const {
 112     return (_tail >= _head ? (_tail - _head + 1) : (MAX_GENERATIONS - (_head - _tail) + 1));
 113   }
 114 };
 115 
 116 #endif // SHARE_VM_SERVICES_MEM_TRACK_WORKER_HPP