Re: RFC: Introduce JDK property jdk.patched for indicating --patch-module at runtime

2024-11-13 Thread Severin Gehwolf
On Wed, 2024-11-13 at 07:35 +, Alan Bateman wrote: > On 13/11/2024 03:44, David Holmes wrote: > > > > The VM already sets properties like > > > >  jdk.module.patch.N=<...> > > > > when processing --patch-mods. Doesn't that suffice if all you need is > > a boolean flag to indicate any patchi

Re: RFC: Introduce JDK property jdk.patched for indicating --patch-module at runtime

2024-11-12 Thread Alan Bateman
On 13/11/2024 03:44, David Holmes wrote: The VM already sets properties like  jdk.module.patch.N=<...> when processing --patch-mods. Doesn't that suffice if all you need is a boolean flag to indicate any patching has occurred? I would have thought you'd like to know which module has been pa

Re: RFC: Introduce JDK property jdk.patched for indicating --patch-module at runtime

2024-11-12 Thread David Holmes
Hi Severin, On 13/11/2024 1:33 am, Severin Gehwolf wrote: Hi, For JDK-8343839 it would be useful to have some form of API in order to be able to detect that a currently running Java process has been launched with '--patch-module'. Alan Bateman suggested to expose a boolean JDK property to indi

RFC: Introduce JDK property jdk.patched for indicating --patch-module at runtime

2024-11-12 Thread Severin Gehwolf
Hi, For JDK-8343839 it would be useful to have some form of API in order to be able to detect that a currently running Java process has been launched with '--patch-module'. Alan Bateman suggested to expose a boolean JDK property to indicate a runtime that has been launched with --patch-module. In