Adding get_pointer VTABLEs to the Integer PMC
Reini Urban
rurban at x-ray.at
Mon Aug 27 22:10:49 UTC 2012
On Mon, Aug 27, 2012 at 1:01 AM, Andrew Whitworth <wknight8111 at gmail.com> wrote:
> vtable != method. You can't call get_pointer from PIR. Pointers and
> other dangerous nonsense is not used directly in the "protected"
> environment.
>
> Testing this is probably best done at the C level, or with some kind
> of NCI. You can't directly test get_pointer from PIR.
>
> On visual inspection your implementation of it looks correct, getting
> a test to prove it is the hardest part.
And you would need to "pin" the pointer for the gc, not to move it.
If we would use a moving or copying gc somewhen.
Same problem as with ffi callbacks.
--
Reini Urban
http://cpanel.net/ http://www.perl-compiler.org/
More information about the parrot-dev
mailing list