JDK-8216309 : StackTraceElement::fill_in can use cached Method name
Type:Sub-task
Component:hotspot
Sub-Component:runtime
Affected Version:11,12,13
Priority:P4
Status:Closed
Resolution:Won't Fix
Submitted:2019-01-07
Updated:2019-08-15
Resolved:2019-01-14
Description
This is the subtask of JDK-8151751.
We can consider caching the method name somewhere to avoid interning it all the time during stack trace creation. The caveat is to do this without significantly inflating the metadata size.
Comments
There seems to be no easy way to cache the Method name string anywhere, without inflating the footprint considerably. Other subtasks in the parent issue (JDK-8151751) had recuperated enough performance loss to make this issue much less relevant.
Closing as WNF. Reopen if there is a need to consider this thing in future.