< prev index next >

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

Print this page
@@ -102,6 +102,15 @@
    ClassAllocator(Klass* klass, size_t word_size, Thread* thread = Thread::current())
      : MemAllocator(klass, word_size, thread) {}
    virtual oop initialize(HeapWord* mem) const;
  };
  
+ class StackChunkAllocator : public MemAllocator {
+   const int _stack_size;
+ public:
+   StackChunkAllocator(Klass* klass, size_t word_size, int stack_size, Thread* thread = Thread::current())
+     : MemAllocator(klass, word_size, thread),
+       _stack_size(stack_size) {}
+   virtual oop initialize(HeapWord* mem) const;
+ };
+ 
  #endif // SHARE_GC_SHARED_MEMALLOCATOR_HPP
< prev index next >