8292177: InitialSecurityProperty JFR event#2827
8292177: InitialSecurityProperty JFR event#2827gnu-andrew wants to merge 3 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back andrew! A progress list of the required criteria for merging this PR into |
|
@gnu-andrew This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 55 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
This backport pull request has now been updated with issue from the original commit. |
Webrevs
|
|
Not sure why the Mac port won't build (no error message), but I can't see a Java-only change causing this. |
Ok, seems the Mac OS 11 runner image was removed on the 28th of June. We need to backport JDK-8318039 |
|
@gnu-andrew This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
|
@gnu-andrew This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the |
|
/open |
|
@gnu-andrew This pull request is now open |
|
|
|
@gnu-andrew This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
|
Keep open please. |
|
/approval request This is part of a number of improvements to the visibility of security property settings and is followed by JDK-8281658 which allows them to be output from the command line. While I realise it is an enhancement being backported late in the 11u lifecycle, easy access to these security properties is often invaluable when debugging various issues. The same backport was already made to 17 during its maintenance period (17.0.7) and Oracle support this in their 11u fork from 11.0.20. Patch did not backport cleanly, but was reviewed by Paul Hohensee. |
|
@gnu-andrew |
|
@gnu-andrew This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
3 similar comments
|
@gnu-andrew This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
|
@gnu-andrew This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
|
@gnu-andrew This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
|
@gnu-andrew This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the |
|
Please re-open, merge latest master and get a second review by either @martinuy or @franferrax. Thanks! |
For a second review it should be fine. Thanks! |
|
/open |
|
@gnu-andrew This pull request is now open |
|
Merge was clean. |
|
@gnu-andrew This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
|
@gnu-andrew This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the |
|
/open |
|
@gnu-andrew This pull request is now open |
|
@gnu-andrew This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
|
@franferrax It would be good for you to take a look at this (even if you aren't a Reviewer in jdk-updates). Much appreciated. |
franferrax
left a comment
There was a problem hiding this comment.
Hi @gnu-andrew and @jerboaa,
Sorry for the very long delay, I had postponed this review thinking it would be harder than it was.
The backport looks good to me (I only mentioned a minor extraneous empty line addition).
I did a local execution to make an independent check about the 3 modified/added tests (java/security/Security/ConfigFileTest.java, jdk/jfr/event/runtime/TestActiveSettingEvent.java and jdk/jfr/event/security/TestInitialSecurityPropertyEvent.java). They are all passing, as long as the whole jdk/jfr/event category except TestNative, which also failed for me (in the same way Andrew described). That test also fails without this pull request changes.
franferrax
left a comment
There was a problem hiding this comment.
I'm not a Reviewer, but it still looks good after the trivial change.
|
/approve yes |
|
@jerboaa |
|
/integrate |
|
Going to push as commit 66ded6a.
Your commit was automatically rebased without conflicts. |
|
@gnu-andrew Pushed as commit 66ded6a. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
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:
JavaSecurityPropertiesAccessis moved tojdk.internal.miscwhereSharedSecretslives in 11uensureClassInitializedinSharedSecretsis called from theunsafeinstance in 11u, as with otherget*Access()methods in that classmodule-info.javais not needed asjdk.jfralready has access tojdk.internal.miscin 11u. The 17u addition is tojdk.internal.access.JDKEvents.javadue to events introduced in later JDK versions.EventNames.javatest 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.eventtests passed, including the new one, with the exception ofTestNative, 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
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/2827/head:pull/2827$ git checkout pull/2827Update a local copy of the PR:
$ git checkout pull/2827$ git pull https://git.openjdk.org/jdk11u-dev.git pull/2827/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2827View PR using the GUI difftool:
$ git pr show -t 2827Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/2827.diff
Using Webrev
Link to Webrev Comment