jdk11u-dev
jdk11u-dev copied to clipboard
8292177: InitialSecurityProperty JFR event
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 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 tojdk.internal.misc
whereSharedSecrets
lives in 11u -
ensureClassInitialized
inSharedSecrets
is called from theunsafe
instance in 11u, as with otherget*Access()
methods in that class - The patch to
module-info.java
is not needed asjdk.jfr
already has access tojdk.internal.misc
in 11u. The 17u addition is tojdk.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
)
Progress
- [x] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
- [x] Change must not contain extraneous whitespace
- [x] Commit message must refer to an issue
- [ ] JDK-8292177 needs maintainer approval
Issue
- JDK-8292177: InitialSecurityProperty JFR event (Enhancement - P4)
Reviewers
- Paul Hohensee (@phohensee - Reviewer)
Reviewing
Using git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/2827/head:pull/2827
$ git checkout pull/2827
Update a local copy of the PR:
$ git checkout pull/2827
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/2827/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2827
View PR using the GUI difftool:
$ git pr show -t 2827
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/2827.diff