RFR: 8244661: JFR: Remove use of thread-locals for java.base events
Markus Gronlund
markus.gronlund at oracle.com
Tue May 12 11:14:29 UTC 2020
Hi Erik,
Very cool - nice work!
Looks good and thank you for achieving this.
Markus
-----Original Message-----
From: Erik Gahlin
Sent: den 9 maj 2020 23:43
To: hotspot-jfr-dev <hotspot-jfr-dev at openjdk.java.net>
Subject: RFR: 8244661: JFR: Remove use of thread-locals for java.base events
Hi,
Could I have a review of change that removes object caching for performance sensitive events in java.base. Instead events are written directly using the event handler. Purpose is to avoid memory bloat when using thread-locals together with virtual threads for project Loom, but it will benefit ordinary threads as well, so plan is to check it in for JDK 15.
Bug:
https://bugs.openjdk.java.net/browse/JDK-8244661
Webrev:
http://cr.openjdk.java.net/~egahlin/8244661/
Testing: jdk/jdk/jfr + reproducer in the original allocation bug
https://bugs.openjdk.java.net/browse/JDK-8187234
Thanks
Erik
More information about the hotspot-jfr-dev
mailing list