Top


定義場所(file name)

hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp

名前(function name)

  HeapWord* allocate(GCAllocPurpose purpose, size_t word_sz) {

本体部(body)

  {- -------------------------------------------
  (1) まず, ParGCAllocBuffer::allocate() で alloc_buffers からの確保を試みる.
      失敗したら, G1ParScanThreadState::allocate_slow() での確保を行う.
      ---------------------------------------- -}

        HeapWord* obj = alloc_buffer(purpose)->allocate(word_sz);
        if (obj != NULL) return obj;
        return allocate_slow(purpose, word_sz);
      }

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