< prev index next >

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

Print this page

        

@@ -63,18 +63,18 @@
 
   // Raw memory allocation. This may or may not use TLAB allocations to satisfy the
   // allocation. A GC implementation may override this function to satisfy the allocation
   // in any way. But the default is to try a TLAB allocation, and otherwise perform
   // mem_allocate.
-  virtual HeapWord* mem_allocate(Allocation& allocation) const;
+  virtual HeapWord* mem_allocate(Allocation& allocation, bool try_tlab) const;
 
   virtual MemRegion obj_memory_range(oop obj) const {
     return MemRegion((HeapWord*)obj, _word_size);
   }
 
 public:
-  oop allocate() const;
+  oop allocate(bool try_tlab = true) const;
   virtual oop initialize(HeapWord* mem) const = 0;
 };
 
 class ObjAllocator: public MemAllocator {
 public:
< prev index next >