< prev index next >

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

Print this page

 87   const bool _do_zero;
 88 protected:
 89   virtual MemRegion obj_memory_range(oop obj) const;
 90 
 91 public:
 92   ObjArrayAllocator(Klass* klass, size_t word_size, int length, bool do_zero,
 93                     Thread* thread = Thread::current())
 94     : MemAllocator(klass, word_size, thread),
 95       _length(length),
 96       _do_zero(do_zero) {}
 97   virtual oop initialize(HeapWord* mem) const;
 98 };
 99 
100 class ClassAllocator: public MemAllocator {
101 public:
102   ClassAllocator(Klass* klass, size_t word_size, Thread* thread = Thread::current())
103     : MemAllocator(klass, word_size, thread) {}
104   virtual oop initialize(HeapWord* mem) const;
105 };
106 









107 #endif // SHARE_GC_SHARED_MEMALLOCATOR_HPP

 87   const bool _do_zero;
 88 protected:
 89   virtual MemRegion obj_memory_range(oop obj) const;
 90 
 91 public:
 92   ObjArrayAllocator(Klass* klass, size_t word_size, int length, bool do_zero,
 93                     Thread* thread = Thread::current())
 94     : MemAllocator(klass, word_size, thread),
 95       _length(length),
 96       _do_zero(do_zero) {}
 97   virtual oop initialize(HeapWord* mem) const;
 98 };
 99 
100 class ClassAllocator: public MemAllocator {
101 public:
102   ClassAllocator(Klass* klass, size_t word_size, Thread* thread = Thread::current())
103     : MemAllocator(klass, word_size, thread) {}
104   virtual oop initialize(HeapWord* mem) const;
105 };
106 
107 class StackChunkAllocator : public MemAllocator {
108   const int _stack_size;
109 public:
110   StackChunkAllocator(Klass* klass, size_t word_size, int stack_size, Thread* thread = Thread::current())
111     : MemAllocator(klass, word_size, thread),
112       _stack_size(stack_size) {}
113   virtual oop initialize(HeapWord* mem) const;
114 };
115 
116 #endif // SHARE_GC_SHARED_MEMALLOCATOR_HPP
< prev index next >