On Tue, 4 Aug 2026 18:05:10 GMT, Coleen Phillimore <[email protected]> wrote:
> This patch removes the work to save the Method name in the backtrace that was > used for the case where redefinition could delete the method that was on the > stack in the stack trace, but saved then deleted with redefinition later. > RedefineClasses' ability to add/delete methods has been deprecated for many > releases, so adding code and memory for this case is wasting space and time. > This change speeds up Throwable microbenchmarks by about 10-30%, and speeds > up DaCapo pmd by a bit. > > Remerged with the change to factor out javaStackTraceClasses. > > Tested with tier1-4. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: c1090a0f Author: Coleen Phillimore <[email protected]> URL: https://git.openjdk.org/jdk/commit/c1090a0f48db3dc16bfdd5473b9dc8e1b228109f Stats: 308 lines in 10 files changed: 95 ins; 159 del; 54 mod 8384600: Improve java_lang_Throwable::fill_in_stack_trace Reviewed-by: matsaave, dholmes ------------- PR: https://git.openjdk.org/jdk/pull/32202
