JDK-8187331 : VirtualSpaceList tracks free space on wrong node
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 10
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-09-07
  • Updated: 2019-05-22
  • Resolved: 2017-09-26
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 10 JDK 8
10 b31Fixed 8u172Fixed
Description
VirtualSpaceList::free_bytes() reports free space that is available for chunk allocation.

Instead of reporting the free space of current virtual space node (the node where the allocation is happening), it reports the head of the list, which is the first node of the list.