Unsafe.storeFence produces a floating fence

Andrew Haley aph at redhat.com
Fri Nov 18 16:42:12 UTC 2016


On 18/11/16 16:27, Doug Simon wrote:
> 
>> On 18 Nov 2016, at 17:20, Andrew Haley <aph at redhat.com> wrote:
>>
>> On 18/11/16 16:17, Doug Simon wrote:
>>> Can you please create an issue on github for this.
>>
>> Oh no, something else to learn!  OK.  :-)
> 
> Thanks - we like using modern tools as well as email ;-)

Ah, the kids these days...

Anyway, I'd quite like to discuss this general issue.  If you're
generating code, either with a Snippet or parsing bytecode, how do you
go about creating a node that can't be moved?  You don't necessarily
know where your immediate successors or predecessors are.  I guess you
could search the graph and find something, but in the case of a memory
fence all you'd like the graph builder to do is insert an immovable
node.

Andrew.



More information about the graal-dev mailing list