Relates :
|
Currently, when we go into the slow allocation path of G1 (i.e., ), we always take the Heap_lock before performing the allocation in the current allocating region. We might improve performance if we allocate out of the current allocating region with a CAS and only need the Heap_lock to replace the current allocating region when it gets full.
|