< prev index next >

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

Print this page
rev 48551 : [mq]: heap8
rev 48552 : [mq]: heap10a
rev 48553 : [mq]: heap14_rebased
rev 48557 : [mq]: heap17
rev 48562 : [mq]: heap23

@@ -300,11 +300,11 @@
   // Pick a next sample in this case, we allocated right.
   thread->tlab().pick_next_sample(overflowed_words);
 }
 
 HeapWord* CollectedHeap::allocate_sampled_object(Thread* thread, size_t size) {
-  thread->tlab().set_back_actual_end();
+  thread->tlab().set_back_allocation_end();
 
   // The tlab could still have space after this sample.
   return thread->tlab().allocate(size);
 }
 

@@ -313,11 +313,11 @@
   bool should_sample = HeapMonitoring::enabled() && thread->tlab().should_sample();
 
   HeapWord* obj = NULL;
   if (should_sample) {
     // Remember the tlab end to fix up the sampling rate.
-    HeapWord* tlab_old_end = thread->tlab().end();
+    HeapWord* tlab_old_end = thread->tlab().current_end();
     obj = allocate_sampled_object(thread, size);
 
     // If we did allocate in this tlab, sample it. Otherwise, we wait for the
     // new tlab's first allocation at the end of this method.
     if (obj != NULL) {
< prev index next >