CompilerDirectives unsafeGet/Put and location identity

Stefan Marr java at stefan-marr.de
Fri Apr 25 16:16:07 UTC 2014


Hi:

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.

Thanks
Stefan

[1] https://bitbucket.org/ssllab/zippy/commits/446cf4cff0b80e8fb893d6f75861839f7cca4b4d
[2] http://markmail.org/message/iulklm27azer3joi
[3] https://github.com/SOM-st/TruffleSOM/commit/28e0af52687618c987541b1c32f2a8335a43fc5e

-- 
Stefan Marr
INRIA Lille - Nord Europe
http://stefan-marr.de/research/





More information about the graal-dev mailing list