[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GTK peer switching JNIEnv *?
From: |
Chris Gray |
Subject: |
Re: GTK peer switching JNIEnv *? |
Date: |
Fri, 14 Jan 2005 18:40:51 +0100 |
User-agent: |
KMail/1.5.4 |
On Friday 14 January 2005 15:59, Robert Lougher wrote:
> I'll make it my internal thread structure, adding the function table
> pntr to the beginning -- this is obviously what the spec expects it to
> be.
Yup, and it's what Wonka has always done.
> I didn't do this before because it makes the thread structure
> bigger, even for threads that never call into JNI. Of course, I won't
> be able to assume it's the right one, and still look it up via
> pthreads. A future optimisation.
We just cast the JNIEnv* pointer to a pointer to a thread structure, without
performing any checks. If people pass bogus pointers to JNI, crashing is
correct behaviour ...
--
Chris Gray /k/ Embedded Java Solutions
Embedded & Mobile Java, OSGi http://www.kiffer.be/k/
address@hidden +32 3 216 0369
Visit us at Embedded World 2005 <http://www.embedded-world.de/>
22--24 Feb. 2005 at the Nürnberg Messe (Germany), booth 10-504
- GTK peer switching JNIEnv *?, Archie Cobbs, 2005/01/13
- Re: GTK peer switching JNIEnv *?, Michael Koch, 2005/01/14
- Re: GTK peer switching JNIEnv *?, Mark Wielaard, 2005/01/14
- Re: GTK peer switching JNIEnv *?, Robert Lougher, 2005/01/14
- Re: GTK peer switching JNIEnv *?, Mark Wielaard, 2005/01/14
- Re: GTK peer switching JNIEnv *?, Robert Lougher, 2005/01/14
- Re: GTK peer switching JNIEnv *?, Michael Koch, 2005/01/14
- Re: GTK peer switching JNIEnv *?, Robert Lougher, 2005/01/14
- Re: GTK peer switching JNIEnv *?, Archie Cobbs, 2005/01/14
- Re: GTK peer switching JNIEnv *?, Robert Lougher, 2005/01/14
- Re: GTK peer switching JNIEnv *?,
Chris Gray <=
- Re: GTK peer switching JNIEnv *?, Etienne Gagnon, 2005/01/14
- Re: GTK peer switching JNIEnv *?, Archie Cobbs, 2005/01/14
Re: GTK peer switching JNIEnv *?, Archie Cobbs, 2005/01/14