Hello, and other things
Rémi Forax
forax at univ-mlv.fr
Sun Mar 16 09:56:30 PDT 2008
John Rose a écrit :
...
> That would work very nicely on the JVM also. You could use
> the sun.misc.Unsafe API (with great care!) to handle punning
> among memory-resident primitive types. You must avoid
> using Unsafe to pun between primitives and references, because
> there is absolutely no way to control when the GC might want
> to move things around underneath your code.
>
>
Yop, the last time i've tried to read a reference as an int (a kind of
fast hashcode)
the construction of the JIT IR (which is typed) crashed before
the GC was triggered.
Rémi
More information about the mlvm-dev
mailing list