RFR: 8324657: Intermittent OOME on exception message create [v2]
Roger Riggs
rriggs at openjdk.org
Thu Jan 25 14:54:55 UTC 2024
> When an exception handler for an OutOfMemoryError uses string concatenation to compose an exception message, the invoke dynamic string format implementation may itself exhaust memory, preventing the exception from being handled.
> Explicit use of String.concat() call can improve exception handling.
>
> Writing a test of the exact failure condition has proved challenging due to the unpredictable state of memory when OOME occurs. The replacement of "+" with String.concat() is simple and direct.
Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
Wrap long line
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/17522/files
- new: https://git.openjdk.org/jdk/pull/17522/files/bfe60737..e83eb84b
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=17522&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=17522&range=00-01
Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/17522.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17522/head:pull/17522
PR: https://git.openjdk.org/jdk/pull/17522
More information about the core-libs-dev
mailing list