< prev index next >

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

Print this page
@@ -21,11 +21,11 @@
   * questions.
   *
   */
  
  #include "precompiled.hpp"
- #include "classfile/javaClasses.hpp"
+ #include "classfile/javaClasses.inline.hpp"
  #include "gc/shared/allocTracer.hpp"
  #include "gc/shared/collectedHeap.hpp"
  #include "gc/shared/memAllocator.hpp"
  #include "gc/shared/threadLocalAllocBuffer.inline.hpp"
  #include "gc/shared/tlab_globals.hpp"

@@ -424,5 +424,15 @@
    assert(_word_size > 0, "oop_size must be positive.");
    mem_clear(mem);
    java_lang_Class::set_oop_size(mem, (int)_word_size);
    return finish(mem);
  }
+ 
+ oop StackChunkAllocator::initialize(HeapWord* mem) const {
+   // const size_t hs = oopDesc::header_size();
+   // Copy::fill_to_aligned_words(mem + hs, vmClasses::StackChunk_klass()->size_helper() - hs);
+ 
+   assert(_stack_size > 0, "");
+   assert(_word_size > (size_t)_stack_size, "");
+   jdk_internal_vm_StackChunk::set_size(mem, _stack_size);
+   return finish(mem);
+ }
< prev index next >