Glass thread checks

steve.x.northover at oracle.com steve.x.northover at oracle.com
Thu Aug 8 07:11:26 PDT 2013


Heavens .. typos!

To give a little more context.  JavaFX is apartment threaded with well 
documented rules for threading.  These rules were not enforced in code.  
Glass, the low level window component for FX is now enforcing apartment 
threading for this component.  Since Glass has no public API, the only 
way that an application can be affected is if it is coded such that it 
accesses Glass through FX from a non-UI thread.  FX itself contained 
code some code that did this this code has been fixed.

Thread checking is goodness and leads to consistent applications with 
repeatable behavior.  Thread checking in Glass is a good first step 
forward towards finding and addressing thread bugs.

Steve


On 08/08/2013 9:48 AM, steve.x.northover at oracle.com wrote:
> To give a little more context.  JavaFX is apartment threaded with well 
> documented rules for threaded.  These rules were not enforced in 
> code.  Glass, the low level window component for FX is not enforcing 
> apartment threading.  Since Glass has no public API, the only way that 
> an application can be affected is if it is coded such that it access 
> Glass through FX from a non-UI thread.  FX itself contained code some 
> code that did this this code has been fixed.
>
> Thread checking is goodness and leads to consistent applications with 
> repeatable behavior.  Thread checking in Glass is a good first step 
> forward in this area.
>
> Steve
>
> On 08/08/2013 9:33 AM, Petr Pchelko wrote:
>> Hello, OpenJFX Team.
>>
>> As you know, the previous attempt to switch on the thread checks have 
>> failed.
>> The problems were fixed, so I'm going to enable them again tomorrow 
>> morning if nobody objects.
>>
>> With best regards. Petr.
>



More information about the openjfx-dev mailing list