RFR: 8292177: InitialSecurityProperty JFR event [v5]

Sean Mullan mullan at openjdk.org
Thu Oct 13 19:31:44 UTC 2022


On Thu, 13 Oct 2022 16:06:13 GMT, Sean Coffey <coffeys at openjdk.org> wrote:

>> New JFR event to record state of initial security properties.
>>  
>> Debug output is also now added for these properties via -Djava.security.debug=properties
>
> Sean Coffey has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 17 commits:
> 
>  - test update
>  - Merge branch 'master' into secEvent-8292177
>  - Use stringPropertyNames()
>  - Refactor getter method name
>  - Restore ProtectionDomain to original
>  - Store properties cache in Security class
>  - Remove unused import
>  - Address Oct 10 review comments
>  - Check for 0 security events
>  - Null check on Properties
>  - ... and 7 more: https://git.openjdk.org/jdk/compare/3644e26c...3a347dae

Changes requested by mullan (Reviewer).

src/java.base/share/classes/java/security/Security.java line 68:

> 66: 
> 67:     /* cache a copy for recording purposes */
> 68:     static Properties initialSecurityProperties;

This can be `private` now.

src/java.base/share/classes/java/security/Security.java line 184:

> 182:     }
> 183: 
> 184:     static Properties getInitialSecurityProperties() {

Don't think we need this method anymore.

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

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



More information about the security-dev mailing list