RFR: 8328037: Test java/util/Formatter/Padding.java has unnecessary high heap requirement after JDK-8326718

Christoph Langer clanger at openjdk.org
Wed Mar 13 14:13:12 UTC 2024


On Wed, 13 Mar 2024 09:42:34 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

> What about factoring out the 4 invocations of `tenMillionBlanks()` in each source method in a local var?

OK, I inlined the generation of the ten million character strings into the parameter generator methods. I looked a bit at the test runtime and it seems like it doesn't make a lot of difference in a test JVM with larger heap but for smaller test VMs it seems to improve things.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18264#issuecomment-1994497012


More information about the core-libs-dev mailing list