FutureTask.cancel(true) should run thread.interrupt within doPrivileged
Martin Buchholz
martinrb at google.com
Thu Oct 3 03:55:00 UTC 2013
On Wed, Oct 2, 2013 at 7:13 PM, David Holmes <david.holmes at oracle.com>wrote:
> On 3/10/2013 2:54 AM, Martin Buchholz wrote:
>
>> On Wed, Oct 2, 2013 at 9:49 AM, Peter Levart <peter.levart at gmail.com>
>> wrote:
>>
>> Hi Martin,
>>>
>>> If you want to optimize for without-security-manager case
>>>
>>
>>
>> I want to optimize for the case that Thread.interrupt does not throw
>> SecurityException
>>
>
> How is your proposal optimizing that case ???
Instead of doing extra work to avoid a SecurityException, I am assuming a
SecurityException is rare, and risk having to throw it twice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/security-dev/attachments/20131002/d81ea547/attachment.htm>
More information about the security-dev
mailing list