JDK-8268361 : Fix the infinite loop in next_line
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-06-08
  • Updated: 2022-11-09
  • Resolved: 2021-06-10
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 11 JDK 13 JDK 15 JDK 17 JDK 18
11.0.18Fixed 13.0.13Fixed 15.0.9Fixed 17.0.2Fixed 18 b01Fixed
Description
If the /proc/stat mount point is changed in container environment, the while loop may lead to 100% cpu usage.
Comments
Fix request (11u) on behalf of Jan Kratochvil I'd like to port JDK-8268361 to 11u because there are similar problems. Clean backport.
08-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1508 Date: 2022-11-08 15:56:14 +0000
08-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk13u-dev/pull/397 Date: 2022-09-01 12:01:39 +0000
01-09-2022

Fix request (15u, 13u): on behalf of Roman Marchenko: I'd like to port JDK-8268361 to 15u due to it has similar problems as 17u does. Fix applies cleanly. Tests tier1 passed after the fix without regressions.
31-08-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk15u-dev/pull/260 Date: 2022-08-26 10:43:35 +0000
30-08-2022

Fix request (17u) Clean backport of a minor fix.
03-11-2021

Changeset: 72672277 Author: UncleNine <ganjianxuan@hotmail.com> Committer: Severin Gehwolf <sgehwolf@openjdk.org> Date: 2021-06-10 16:40:29 +0000 URL: https://git.openjdk.java.net/jdk/commit/72672277e4dddf8e72f1c705cd5f57de40745635
10-06-2021