< prev index next >

src/hotspot/share/gc/shared/memAllocator.cpp

Print this page
@@ -247,10 +247,13 @@
  void MemAllocator::Allocation::notify_allocation() {
    notify_allocation_low_memory_detector();
    notify_allocation_jfr_sampler();
    notify_allocation_dtrace_sampler();
    notify_allocation_jvmti_sampler();
+   TSAN_RUNTIME_ONLY(
+       SharedRuntime::tsan_track_obj_with_size(obj(), (int)_allocator._word_size);
+   );
  }
  
  HeapWord* MemAllocator::allocate_outside_tlab(Allocation& allocation) const {
    allocation._allocated_outside_tlab = true;
    HeapWord* mem = Universe::heap()->mem_allocate(_word_size, &allocation._overhead_limit_exceeded);
< prev index next >