Top


定義場所(file name)

hotspot/src/share/vm/gc_interface/collectedHeap.inline.hpp

名前(function name)

void CollectedHeap::post_allocation_setup_no_klass_install(KlassHandle klass,
                                                           HeapWord* objPtr,
                                                           size_t size) {

本体部(body)

  {- -------------------------------------------
  (1) mark フィールドを初期化する
      (biased locking が有効ならば biased locking patter の mark, 
       そうでなければ 非 biased locking pattern の mark をセットする.)
      ---------------------------------------- -}

      oop obj = (oop)objPtr;

      assert(obj != NULL, "NULL object pointer");
      if (UseBiasedLocking && (klass() != NULL)) {
        obj->set_mark(klass->prototype_header());
      } else {
        // May be bootstrapping
        obj->set_mark(markOopDesc::prototype());
      }
    }

This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.