RFR: 8345955: Deprecate the UseOprofile flag with a view to removing the legacy oprofile support in the VM

David Holmes dholmes at openjdk.org
Wed Dec 11 00:39:49 UTC 2024


Please review this simple change to deprecate the `UseOprofile` flag in JDK 25, with a view to obsoleting it in JDK 26.

The VM has supported the Linux OProfile profiler since 2005, however to work properly with OProfile's Linux kernel module (ref lookup_dcookie()), the VM has to change the way compiled code memory is mapped. That is done under the control of the UseOprofile flag (default false). Since 2012 OProfile has not needed the kernel module, and it was removed from the kernel in 2021. Consequently this special code and the UseOprofile flag are not needed.

Could I also get a Reviewer for the CSR request please.

Testing: tiers 1-3 (sanity)

Thanks

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

Commit messages:
 - 8345955: Deprecate the UseOprofile flag with a view to removing the legacy oprofile support in the VM

Changes: https://git.openjdk.org/jdk/pull/22674/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22674&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8345955
  Stats: 9 lines in 3 files changed: 8 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/22674.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22674/head:pull/22674

PR: https://git.openjdk.org/jdk/pull/22674


More information about the hotspot-runtime-dev mailing list