[foreign] RFR 8217414: Remove bounds check in BoundedPointer constructor
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Mon Jan 21 16:12:47 UTC 2019
On 21/01/2019 15:54, Maurizio Cimadamore wrote:
> Also, addr() is also where the liveness check takes place, so that's
> already how the code works.
Also, there doesn't seem to be much point in restricting the passing of
a dead/out of bound pointer to a native function when the user can
simply workaround by calling addr() on that pointer and pass the
resulting long.
I'm not saying that we should make the API bullet proof (with native
code I think that would be hard to achieve), but we should at least try
to make it hard for people to use the API in ways it is not intended to.
Maurizio
More information about the panama-dev
mailing list