src/share/vm/memory/sharedHeap.cpp

changeset 916
7d7a7c599c17
parent 791
1ee8caae33af
child 1014
0fbdb4381b99
     1.1 --- a/src/share/vm/memory/sharedHeap.cpp	Wed Dec 10 23:46:10 2008 -0800
     1.2 +++ b/src/share/vm/memory/sharedHeap.cpp	Thu Dec 11 12:05:08 2008 -0800
     1.3 @@ -248,46 +248,6 @@
     1.4    perm_gen()->ref_processor_init();
     1.5  }
     1.6  
     1.7 -void SharedHeap::fill_region_with_object(MemRegion mr) {
     1.8 -  // Disable the posting of JVMTI VMObjectAlloc events as we
     1.9 -  // don't want the filling of tlabs with filler arrays to be
    1.10 -  // reported to the profiler.
    1.11 -  NoJvmtiVMObjectAllocMark njm;
    1.12 -
    1.13 -  // Disable low memory detector because there is no real allocation.
    1.14 -  LowMemoryDetectorDisabler lmd_dis;
    1.15 -
    1.16 -  // It turns out that post_allocation_setup_array takes a handle, so the
    1.17 -  // call below contains an implicit conversion.  Best to free that handle
    1.18 -  // as soon as possible.
    1.19 -  HandleMark hm;
    1.20 -
    1.21 -  size_t word_size = mr.word_size();
    1.22 -  size_t aligned_array_header_size =
    1.23 -    align_object_size(typeArrayOopDesc::header_size(T_INT));
    1.24 -
    1.25 -  if (word_size >= aligned_array_header_size) {
    1.26 -    const size_t array_length =
    1.27 -      pointer_delta(mr.end(), mr.start()) -
    1.28 -      typeArrayOopDesc::header_size(T_INT);
    1.29 -    const size_t array_length_words =
    1.30 -      array_length * (HeapWordSize/sizeof(jint));
    1.31 -    post_allocation_setup_array(Universe::intArrayKlassObj(),
    1.32 -                                mr.start(),
    1.33 -                                mr.word_size(),
    1.34 -                                (int)array_length_words);
    1.35 -#ifdef ASSERT
    1.36 -    HeapWord* elt_words = (mr.start() + typeArrayOopDesc::header_size(T_INT));
    1.37 -    Copy::fill_to_words(elt_words, array_length, 0xDEAFBABE);
    1.38 -#endif
    1.39 -  } else {
    1.40 -    assert(word_size == (size_t)oopDesc::header_size(), "Unaligned?");
    1.41 -    post_allocation_setup_obj(SystemDictionary::object_klass(),
    1.42 -                              mr.start(),
    1.43 -                              mr.word_size());
    1.44 -  }
    1.45 -}
    1.46 -
    1.47  // Some utilities.
    1.48  void SharedHeap::print_size_transition(outputStream* out,
    1.49                                         size_t bytes_before,

mercurial