JDK-8287007 : [cgroups] Consistently use stringStream throughout parsing code
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 19
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2022-05-19
  • Updated: 2025-02-18
  • Resolved: 2022-06-13
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 17 JDK 20 JDK 8
11.0.20-oracleFixed 17.0.8-oracleFixed 20 b02Fixed 8u461Fixed
Related Reports
Blocks :  
Relates :  
Relates :  
Description
JDK-8146115 added code for parsing various proc files. There are also code snippets for assembling paths where the the controller's limit files actually are. We should change the string concatenation code to use stringStream consistently as this avoids writable buffers on the stack and doesn't have a hard-coded path max limit.

JDK-8286212 started this work for added code.
Comments
Fix request [11u] This is a backport for parity with 11.0.20-oracle. Applies cleanly. Tests passed (GHA and SAP internal). New tests run by Severin Gehwolf, result: passed. Thank you!
26-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1896 Date: 2023-05-24 15:43:34 +0000
24-05-2023

Fix request [17u] I backport this for parity with 17.0.8-oracle. Simple change, low risk. Clean backport. Test passes. SAP nightly testing passed.
18-04-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1251 Date: 2023-04-17 13:01:55 +0000
17-04-2023

Changeset: e0baf012 Author: Severin Gehwolf <sgehwolf@openjdk.org> Date: 2022-06-13 15:14:51 +0000 URL: https://git.openjdk.org/jdk/commit/e0baf012b111e422ddf39a577b1b4af2599fd00d
13-06-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8969 Date: 2022-06-01 09:18:38 +0000
01-06-2022