JDK-8245025 : MoveAndUpdateClosure::do_addr calls function with side-effects in an assert
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-05-14
  • Updated: 2021-03-22
  • Resolved: 2021-03-15
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 17
17 b14Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
MoveAndUpdateClosure::do_addr calls calc_new_pointer in an assert, but that function has side effects. It calls PsParallelCompact::fill_blocks on the region containing the address and marks that region filled.  This appears to be "harmless" in the sense that this is permitted to occur multiple times for a region.  But this could have the effect of masking lack of region filling somewhere else for release builds.

Comments
This fix was integrated in jdk-17+14-1061.
18-03-2021

Changeset: 771b146a Author: Albert Mingkun Yang <ayang@openjdk.org> Date: 2021-03-15 17:25:59 +0000 URL: https://git.openjdk.java.net/jdk/commit/771b146a
15-03-2021