[jdk11u-dev] RFR: 8292177: InitialSecurityProperty JFR event [v2]

Andrew John Hughes andrew at openjdk.org
Wed Dec 3 19:28:13 UTC 2025


> This backport introduces the JFR security event, `InitialSecurityProperty`, and along with it, the caching of the initial security properties which is also used by [JDK-8281658](https://bugs.openjdk.org/browse/JDK-8281658) to show the security properties with `-XshowSettings`.
> 
> The change was backported to the Oracle fork of 11u in 11.0.20.
> 
> The following changes were necessary for the backport:
> 
> * `JavaSecurityPropertiesAccess` is moved to `jdk.internal.misc` where `SharedSecrets` lives in 11u
> * `ensureClassInitialized` in `SharedSecrets` is called from the `unsafe` instance in 11u, as with other `get*Access()` methods in that class
> * The patch to `module-info.java` is not needed as `jdk.jfr` already has access to `jdk.internal.misc` in 11u. The 17u addition is to `jdk.internal.access`.
> * There are context differences in `JDKEvents.java` due to events introduced in later JDK versions.
> * The `EventNames.java` test includes a huge unrelated change to reorganise the order of the variable modifiers. This was applied manually to the names in 11u, which differ slightly from those in 17u.
> 
> All `jdk.jfr.event` tests passed, including the new one, with the exception of `TestNative`, but that seems to be a setup issue rather than a regression caused by this patch (`Error. Use -nativepath to specify the location of native code`)

Andrew John Hughes has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge remote-tracking branch 'jdk11u-dev/master' into JDK-8292177
 - Backport 95f23f7d82c0ebfd94c72b08695f9f415587a16a

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

Changes:
  - all: https://git.openjdk.org/jdk11u-dev/pull/2827/files
  - new: https://git.openjdk.org/jdk11u-dev/pull/2827/files/3286f459..5ebb24de

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=2827&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=2827&range=00-01

  Stats: 94066 lines in 1591 files changed: 50829 ins; 27947 del; 15290 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/2827.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/2827/head:pull/2827

PR: https://git.openjdk.org/jdk11u-dev/pull/2827


More information about the jdk-updates-dev mailing list