Re: RFR: 8291641: Optimize StackTraceElement.toString() [v4]

2022-08-02 Thread David Schlosnagle
On Tue, 2 Aug 2022 14:13:25 GMT, Roger Riggs wrote: >> David Schlosnagle has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Inline max Integer.stringSize > > Are there existing tests that validate the formatted results? > If so, add this b

Re: RFR: 8291641: Optimize StackTraceElement.toString() [v4]

2022-08-02 Thread Roger Riggs
On Tue, 2 Aug 2022 13:58:52 GMT, David Schlosnagle wrote: >> I would like to contribute an optimized version of >> `StackTraceElement#toString()` that uses a single StringBuilder throughout >> creation to avoid intermediate `String` allocations. >> `StackTraceElement#toString()` is used in a n

Re: RFR: 8291641: Optimize StackTraceElement.toString() [v4]

2022-08-02 Thread David Schlosnagle
> I would like to contribute an optimized version of > `StackTraceElement#toString()` that uses a single StringBuilder throughout > creation to avoid intermediate `String` allocations. > `StackTraceElement#toString()` is used in a number of JDK code paths > including `Throwable#printStackTrace(