Fast Path allocation
Andrew Haley
aph at redhat.com
Sat Mar 27 14:35:55 UTC 2021
On 3/27/21 10:17 AM, Manavjeet Singh wrote:
> Hi,
> I am studying C2 compiler in java. In the file
> jdk/src/hotspot/share/opto/runtime.cpp, in the allocation section a comment
> says, "We failed the fast-path allocation. Now we need to do a scavenge or
> GC and try allocation again."
> I assume the fast path allocation means directly allocating from a TLAB.
Correct. The fast path for newinstance allocates from a TLAB.
--
Andrew Haley (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the hotspot-gc-dev
mailing list