-
Sub-task
-
Resolution: Unresolved
-
P4
-
None
-
26
The G1 garbage collector now eagerly reclaims eligible humongous (very large objects that occupy more than half a heap region) objects containing references. Instead of requiring liveness analysis (concurrent marking) of the entire Java heap, G1 can collect these objects at any garbage collection pause if they are not referenced any more.
This mechanism applies both to humongous arrays of references (e.g. `Object[]`) and regular humongous objects.
This change allows for more prompt recovery of memory previously held by such objects, particularly if they are short-lived. This improves garbage collection efficiency and reduces heap usage.
This mechanism applies both to humongous arrays of references (e.g. `Object[]`) and regular humongous objects.
This change allows for more prompt recovery of memory previously held by such objects, particularly if they are short-lived. This improves garbage collection efficiency and reduces heap usage.