2 ms·
This is the way it is described in the GC Handbook as well. New(): ref <- allocate() if ref = null collect() ref <- allocate() if
by kaba0 4y ago
This is the way it is described in the GC Handbook as well.
New():
ref <- allocate()
if ref = null
collect()
ref <- allocate()
if ref = null
error "Out of memory"
return ref