RFR: 8037914: Add JFR event for string deduplication

Francesco Andreuzzi fandreuzzi at openjdk.org
Wed Oct 29 23:37:02 UTC 2025


On Wed, 29 Oct 2025 12:57:43 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

> I think one event is sufficient. It’s easier to configure, easier to program against and will have less overhead.

Sounds good, I made the change in the latest commits.

> We want events to be enabled by default, and they must work even in pathological cases, such as an application calling String::intern() in a loop. If you believe we can get 10 000 events per minute in such cases, it might be better to fix JDK-8315238 first, or disable the event and enable it only in profile.jfc, then re-enable it in default.jfc once JDK-8315238 has been fixed.

Sure, I disabled the new event in `default.jfc`.

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

PR Comment: https://git.openjdk.org/jdk/pull/28015#issuecomment-3465092462


More information about the hotspot-dev mailing list