RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v10]

Kevin Walls kevinw at openjdk.org
Fri Jun 14 12:44:13 UTC 2024


On Fri, 14 Jun 2024 12:09:46 GMT, Weijun Wang <weijun at openjdk.org> wrote:

> I don't quite understand why there is no more `noPermissionsACC` in `Monotor.java`. This looks like the only behavior change when SM is allowed. The other source change looks fine to me.

Does noPermissionsACC add anything?  Maybe I'm rushing the removal of ACCs where I can.

Start sets acc to the current context (when SM permitted, use Subject otherwise)
Set acc to noPermissionsACC when stop is called (or forget the Subject).

acc is accessed within the run method.

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

PR Comment: https://git.openjdk.org/jdk/pull/19624#issuecomment-2167949489


More information about the serviceability-dev mailing list