Christopher Smith <[EMAIL PROTECTED]> writes:
> > Matt Welsh wrote,
> > I guess that in principle it ought to be possible to tweak
> > JVMs to special-case a priviledged class of byte[]s to allow
> > them to be pinned for an extended interval without completely
> > screwing GC, but I'm not at all clear at the mo' how that could=20
> > be done. By the look of it the latest rev. of Jaguar might
> > give me some answers.
> 
> I could swear you can actually do this with JNI. From the JNI spec:

No. I want to wrap a *C array* as a Java object - not the other way around.
What you are talking about is getting a C pointer to a Java object.
Not the same thing!

Also, in the case of Get<PrimitiveType>ArrayElements(), the JVM does not
promise not to copy the data -- and copying kills your performance.

Matt Welsh


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to