< prev index next >

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

Print this page
rev 49945 : imported patch 8191471-g1-varying-tlab-allocation
rev 49947 : imported patch 8191471-tschatzl-comments
rev 49949 : imported patch 8191471-tschatzl-comments-open
rev 49950 : [mq]: 8191471-pliden-comments

@@ -124,11 +124,17 @@
 
   // Constructor
   CollectedHeap();
 
   // Create a new tlab. All TLAB allocations must go through this.
-  virtual HeapWord* allocate_new_tlab(size_t size);
+  // To allow more flexible TLAB allocations min_size specifies
+  // the minimum size needed, while requested_size is the requested
+  // size based on ergonomics. The actually allocated size will be
+  // returned in actual_size.
+  virtual HeapWord* allocate_new_tlab(size_t min_size,
+                                      size_t requested_size,
+                                      size_t* actual_size);
 
   // Accumulate statistics on all tlabs.
   virtual void accumulate_statistics_all_tlabs();
 
   // Reinitialize tlabs before resuming mutators.
< prev index next >