CompilerDirectives unsafeGet/Put and location identity

Stefan Marr java at
Fri Apr 25 16:16:07 UTC 2014


How is the location identity supposed to be used for unsafe access operations in the CompilerDirectives?

I saw that Wei changed ZipPy’s use of these methods from passing the node identity to passing null [1].
The commit messages mentions a ‘compiler error’. 

For TruffleSOM, this introduced a correctness issue earlier this month (see the mail here [2]).

Passing null indeed also solvers my correctness issues, but I still would like to understand whether that’s a compiler bug that is going to be fixed, or whether I used [3] the location hint in a way that it wasn’t supposed to be used.



Stefan Marr
INRIA Lille - Nord Europe

More information about the graal-dev mailing list