2010/3/30 sebb <[email protected]>:
> On 29/03/2010, [email protected] <[email protected]> wrote:
>> Author: markt
>>  Date: Mon Mar 29 15:01:14 2010
>>  New Revision: 928798
>>
>>  URL: http://svn.apache.org/viewvc?rev=928798&view=rev
>>  Log:
>>  Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48895
>>  Make clearing thread locals optional and disabled by default since it isn't 
>> thread-safe
>
> However, the new boolean flag (clearReferencesThreadLocals) that
> controls the process is not safely published between threads. It
> should probably be volatile.
>

Startup is performed by a single thread, and it will set the value of
this field.
According to the memory model all the threads started after that will
see the assigned value.

I do not remember any of the "option value" fields in Tomcat being
marked as volatile. All of them are usual fields.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to