Truffle concurrency?

Thomas Wuerthinger thomas.wuerthinger at
Sun Aug 4 11:38:08 PDT 2013

We expect one Truffle AST per worker thread. This will give you automatically per-thread specialisation. The data can be shared between threads and operated on using the normal Java memory model rules and synchronisation constructs. - thomas

On Aug 4, 2013, at 10:56 AM, Andreas Woess <Andreas.Woess at> wrote:

> Truffle ASTs are not thread safe. The recommended way to deal with
> parallel execution is to maintain thread-local copies of an AST and
> therefore avoid the need for synchronization.
> - andreas
> On 04.08.2013 18:59, Dain Sundstrom wrote:
>> What is the concurrency model for Truffle?  Specifically, is the CallTarget thread safe?  Should I be coding my nodes to be thread safe?
>> -dain

More information about the graal-dev mailing list