JDK-8271884 : G1CH::_expand_heap_after_alloc_failure is no longer needed
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-08-04
  • Updated: 2021-08-16
  • Resolved: 2021-08-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 18
18 masterFixed
Related Reports
Relates :  
Relates :  
Description
G1CollectedHeap::_expand_heap_after_alloc_failure was introduced by JDK-7113006 (fixed in 2012) to eliminate repeated expansion attempts and the associated logging once expansion had failed, resulting in evacuation failure.

However, since then (2015) we have JDK-8003237, which cuts off the appropriate slow path entirely on evacuation failures. That means we won't hit the case where _expand_heap_after_alloc_failure is false more than once.  (It can be hit once because survivor space and old space are tracked as full separately.)

Comments
Changeset: cd1751c3 Author: Ivan Walulya <iwalulya@openjdk.org> Date: 2021-08-11 11:56:30 +0000 URL: https://git.openjdk.java.net/jdk/commit/cd1751c34e974683f3d2734c8ad5823a6ea27295
11-08-2021