Top


定義場所(file name)

hotspot/src/share/vm/prims/jvmtiClassFileReconstituter.hpp

説明(description)

  // Calls to this constructor must be proceeded by a ResourceMark
  // and a HandleMark

名前(function name)

  JvmtiConstantPoolReconstituter(instanceKlassHandle ikh){

本体部(body)

  {- -------------------------------------------
  (1) フィールドの初期化

      (なお, constantPoolOopDesc::hash_entries_to() で Constant Pool のメモリ領域の大きさを計算している)
      ---------------------------------------- -}

        set_error(JVMTI_ERROR_NONE);
        _ikh = ikh;
        _cpool = constantPoolHandle(Thread::current(), ikh->constants());
        _symmap = new SymbolHashMap();
        _classmap = new SymbolHashMap();
        _cpool_size = _cpool->hash_entries_to(_symmap, _classmap);
        if (_cpool_size == 0) {
          set_error(JVMTI_ERROR_OUT_OF_MEMORY);
        } else if (_cpool_size < 0) {
          set_error(JVMTI_ERROR_INTERNAL);
        }
      }

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