RFR: 8275338: Add JFR events for notable serialization situations [v12]
Raffaello Giulietti
rgiulietti at openjdk.org
Wed Jan 10 13:54:29 UTC 2024
On Tue, 9 Jan 2024 18:31:49 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> Yes, that's perhaps clearer, will do.
>
> Typically in other places in the JDK we use `priviledgedXxx` for naming methods that are simple wrappers that call `xxx` from within a `doPrivileged`. The method is called privileged because it doesn't require the caller to use `doPrivileged`.
>
> That is something like:
>
>
> String privilegedGetProperty(String property) {
> return AccessController.doPrivileged((...) () -> System.getProperty(property));
> }
>
>
> See for instance: https://github.com/openjdk/jdk/blob/ee98d262181f5822609674c71c85ad4576ac1632/src/java.base/share/classes/sun/security/action/GetPropertyAction.java#L107
Ah OK, I wasn't aware of this convention.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17129#discussion_r1447413819
More information about the core-libs-dev
mailing list