< prev index next >

src/hotspot/share/runtime/threadHeapSampler.hpp

Print this page
rev 52058 : 8211950: Deprecate the check if a JVMTI collector is present assertion
Summary:
Reviewed-by:


  49   ThreadHeapSampler() : _bytes_until_sample(0) {
  50     _rnd = static_cast<uint32_t>(reinterpret_cast<uintptr_t>(this));
  51     if (_rnd == 0) {
  52       _rnd = 1;
  53     }
  54 
  55     _collectors_present = 0;
  56   }
  57 
  58   size_t bytes_until_sample()                    { return _bytes_until_sample;   }
  59   void set_bytes_until_sample(size_t bytes)      { _bytes_until_sample = bytes;  }
  60 
  61   void check_for_sampling(oop obj, size_t size_in_bytes, size_t bytes_allocated_before);
  62 
  63   static int enabled();
  64   static void enable();
  65   static void disable();
  66 
  67   static void set_sampling_interval(int sampling_interval);
  68   static int get_sampling_interval();
  69 
  70   bool sampling_collector_present() const;
  71   bool remove_sampling_collector();
  72   bool add_sampling_collector();
  73 };
  74 
  75 #endif // SHARE_RUNTIME_THREADHEAPSAMPLER_HPP


  49   ThreadHeapSampler() : _bytes_until_sample(0) {
  50     _rnd = static_cast<uint32_t>(reinterpret_cast<uintptr_t>(this));
  51     if (_rnd == 0) {
  52       _rnd = 1;
  53     }
  54 
  55     _collectors_present = 0;
  56   }
  57 
  58   size_t bytes_until_sample()                    { return _bytes_until_sample;   }
  59   void set_bytes_until_sample(size_t bytes)      { _bytes_until_sample = bytes;  }
  60 
  61   void check_for_sampling(oop obj, size_t size_in_bytes, size_t bytes_allocated_before);
  62 
  63   static int enabled();
  64   static void enable();
  65   static void disable();
  66 
  67   static void set_sampling_interval(int sampling_interval);
  68   static int get_sampling_interval();




  69 };
  70 
  71 #endif // SHARE_RUNTIME_THREADHEAPSAMPLER_HPP
< prev index next >