4 ms·
> Java programs assume GC only users of long running programs assume GC, the program itself doesnt care.
by singularity2001 4y ago
> Java programs assume GC
only users of long running programs assume GC, the program itself doesnt care.
- marginalia_nu 4y agoThe programmer most likely assumes short-lived objects are "free" (as they effectively are in Java), and can be allocated in loops and so on without filling up memory and without incurring any real penalty to performance (via TLAB or possibly elision).