3 ms·
Each thread does have its own local TLAB in which bump allocations are performed; but you still have the GC effect even if you're using that. Provided you stay
by alblue 10y ago
Each thread does have its own local TLAB in which bump allocations are performed; but you still have the GC effect even if you're using that. Provided you stay entirely within Eden then your GC will just drop the space - but it is preferable here to not generate any garbage in these situations by eg pre-allocating the necessary objects and just doing field writes.