It's known that JIT could speculate about classes fields.
JIT in HotSpot require such fields to be marked as static final. https://shipilev.net/jvm/anatomy-quarks/15-just-in-time-constants/
I propose to mark all Trace instances as static final, as they are used very often.
I will update other fields in following PRs. Focused here only one class to minimize changes and make review easier.
It's known that JIT could speculate about classes fields. JIT in HotSpot require such fields to be marked as
static final
. https://shipilev.net/jvm/anatomy-quarks/15-just-in-time-constants/ I propose to mark allTrace
instances asstatic final
, as they are used very often.I will update other fields in following PRs. Focused here only one class to minimize changes and make review easier.