Top


定義場所(file name)

hotspot/src/share/vm/oops/markOop.inline.hpp

名前(function name)

inline markOop markOopDesc::prototype_for_object(oop obj) {

本体部(body)

  {- -------------------------------------------
  (1) (デバッグ用の処理) (#ifdef ASSERT 時にのみ実行)
      ---------------------------------------- -}

    #ifdef ASSERT
      markOop prototype_header = obj->klass()->klass_part()->prototype_header();
      assert(prototype_header == prototype() || prototype_header->has_bias_pattern(), "corrupt prototype header");
    #endif

  {- -------------------------------------------
  (1) 対応する Klass オブジェクトの Klass::prototype_header() の値を返すだけ.
      ---------------------------------------- -}

      return obj->klass()->klass_part()->prototype_header();
    }

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