--- old/src/hotspot/share/runtime/threadHeapSampler.hpp 2018-03-19 14:01:17.057601983 -0700 +++ new/src/hotspot/share/runtime/threadHeapSampler.hpp 2018-03-19 14:01:16.753602974 -0700 @@ -36,10 +36,11 @@ void pick_next_sample(size_t diff = 0); static int _enabled; - static int _monitoring_rate; + static int _sampling_rate; static void enable() { OrderAccess::release_store(&_enabled, 1); } static void disable() { OrderAccess::release_store(&_enabled, 0); } + void init_log_table(); public: ThreadHeapSampler() : _bytes_until_sample(0), _thread(NULL) { @@ -47,6 +48,7 @@ if (_rnd == 0) { _rnd = 1; } + init_log_table(); } void set_thread(Thread* t) { _thread = t; } @@ -57,7 +59,7 @@ void check_for_sampling(HeapWord* obj, size_t size_in_bytes, size_t bytes_allocated_before = 0); static int enabled() { return OrderAccess::load_acquire(&_enabled); } - static void set_tlab_heap_sampling(int monitoring_rate); + static void set_tlab_heap_sampling(int sampling_rate); }; #endif // SHARE_RUNTIME_THREADHEAPSAMPLER_HPP