Failure scenarios

Simone Bordet simone.bordet at
Wed Apr 10 14:43:57 UTC 2019


I would like to ask a few questions about how ZGC handles failure scenarios.

If there is an allocation failure, but the GC is currently running, my
understanding is that the allocating thread will pause until the GC
can make space for the request allocation.
AFAIK, this is called "Allocation Stall" and it's reported by ZGC logging.
Is my understanding correct?

Also AFAIK there is no fall back to Full GCs. Is this correct?

If ZGC cannot free space, there is no retry and no more stalling of
the allocating thread, but just a OOME. Is that right?


Simone Bordet
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless.   Victoria Livschitz

More information about the zgc-dev mailing list