RFR (s): 4354680: Runtime.runFinalization() silently clears interrupted flag in the calling thread

Stuart Marks stuart.marks at oracle.com
Thu Oct 30 19:12:17 UTC 2014


On 10/30/14 2:21 AM, Chris Hegarty wrote:
> On 30 Oct 2014, at 07:31, David Holmes <david.holmes at oracle.com> wrote:
>> On 30/10/2014 4:00 PM, Stanimir Simeonoff wrote:
>>> It could be defense vs Thread.currentThread().run() in finalizer that
>>> would cause calling run() of Thread.target. I am not sure if that would
>>> cause invocation, though.
>>
>> That is an excellent point! But it deserves a comment in the code.
>
> Adding a comment is fine, but please to not remove this field. ‘hg log’ may reveal more about it’s origins.

Oh yes, quite right. I'll leave the field as-is, and add a comment here and to 
the other locations in this file to inform future maintainers.

s'marks



More information about the core-libs-dev mailing list