On Sat, 26 Nov 2022 17:24:02 GMT, Alan Bateman wrote:
> Not important but can eliminate the casts from privilegedThreadSetXXX methods
> if you separate the creation of the PrivilegedAction from the doPriv call.
I chose to keep it as is since there was already another doPriv in the file
that us
On Sat, 26 Nov 2022 15:55:27 GMT, Ryan Ernst wrote:
>> This commit guards thread modifications for the process reaper thread with
>> doPrivileged.
>
> Ryan Ernst has updated the pull request incrementally with one additional
> commit since the last revision:
>
> Revert factory method
This l
On Wed, 23 Nov 2022 16:02:37 GMT, Chris Hegarty wrote:
>> I would prefer to to avoid creating new factories when the desired function
>> can be done on the resulting thread.
>> Such as `setDaemon()` and `setName()`, etc.
>> It does avoid the doPriv in this case, but is not necessary and when the
On Sat, 26 Nov 2022 15:50:54 GMT, Ryan Ernst wrote:
>> This commit guards thread modifications for the process reaper thread with
>> doPrivileged.
>
> Ryan Ernst has updated the pull request incrementally with one additional
> commit since the last revision:
>
> Revert factory method
LGTM
> This commit guards thread modifications for the process reaper thread with
> doPrivileged.
Ryan Ernst has updated the pull request incrementally with one additional
commit since the last revision:
Revert factory method
-
Changes:
- all: https://git.openjdk.org/jdk/pull/11309
> This commit guards thread modifications for the process reaper thread with
> doPrivileged.
Ryan Ernst has updated the pull request incrementally with two additional
commits since the last revision:
- Merge pull request #1 from ChrisHegarty/reaper_thread_modify
Add privileged helper me
On Wed, 23 Nov 2022 15:22:47 GMT, Roger Riggs wrote:
>> src/java.base/share/classes/jdk/internal/misc/InnocuousThread.java line 137:
>>
>>> 135: public static Thread newSystemThread(String name, Runnable target,
>>> 136: long stackSize, int priority,
On Wed, 23 Nov 2022 08:38:02 GMT, Chris Hegarty wrote:
>> This commit guards thread modifications for the process reaper thread with
>> doPrivileged.
>
> src/java.base/share/classes/jdk/internal/misc/InnocuousThread.java line 137:
>
>> 135: public static Thread newSystemThread(String name,
On Wed, 23 Nov 2022 05:01:40 GMT, Ryan Ernst wrote:
> This commit guards thread modifications for the process reaper thread with
> doPrivileged.
Changes requested by chegar (Reviewer).
src/java.base/share/classes/jdk/internal/misc/InnocuousThread.java line 137:
> 135: public static Thread
On Wed, 23 Nov 2022 05:01:40 GMT, Ryan Ernst wrote:
> This commit guards thread modifications for the process reaper thread with
> doPrivileged.
Hi @rjernst Thanks for taking this one on.
I agree with adding the privileged blocks around the calls to Thread::setName,
but the usage raises a wa
This commit guards thread modifications for the process reaper thread with
doPrivileged.
-
Commit messages:
- 8297451: ProcessHandleImpl should assert privilege when modifying reaper
thread
Changes: https://git.openjdk.org/jdk/pull/11309/files
Webrev: https://webrevs.openjdk.org/
11 matches
Mail list logo