Re: Strange Issue With Static Global Variable in Native

2013-12-09 Thread Dan Xu
Hi Chris, Thanks for your detailed explanation. I understand the issue now. Thanks! -Dan On Mon 09 Dec 2013 02:09:52 AM PST, Chris Hegarty wrote: On 08/12/13 17:39, Dan Xu wrote: On 12/08/2013 01:34 AM, Chris Hegarty wrote: On 07/12/2013 18:12, Dan Xu wrote: ... Just so I understand,

Re: Strange Issue With Static Global Variable in Native

2013-12-09 Thread Chris Hegarty
On 08/12/13 17:39, Dan Xu wrote: On 12/08/2013 01:34 AM, Chris Hegarty wrote: On 07/12/2013 18:12, Dan Xu wrote: ... Just so I understand, did you use a JNI global when caching the reference? -Alan Hi Alan, What is a JNI global? http://docs.oracle.com/javase/7/docs/technotes/guides/jni/

Re: Strange Issue With Static Global Variable in Native

2013-12-08 Thread Dan Xu
On 12/08/2013 01:34 AM, Chris Hegarty wrote: On 07/12/2013 18:12, Dan Xu wrote: ... Just so I understand, did you use a JNI global when caching the reference? -Alan Hi Alan, What is a JNI global? http://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/design.html#wp1242 > Wha

Re: Strange Issue With Static Global Variable in Native

2013-12-08 Thread Chris Hegarty
On 07/12/2013 18:12, Dan Xu wrote: ... Just so I understand, did you use a JNI global when caching the reference? -Alan Hi Alan, What is a JNI global? http://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/design.html#wp1242 > What I use here is a static global variable. I have u

Re: Strange Issue With Static Global Variable in Native

2013-12-07 Thread Dan Xu
On 12/07/2013 02:57 AM, Alan Bateman wrote: On 07/12/2013 01:22, Dan Xu wrote: Hi All, When working on src/solaris/native/sun/net/spi/DefaultProxySelector.c, previously I tried to cached a jobject (The cached java object is java.net.Proxy.NO_PROXY, which is a special type of Proxy.) as a g

Re: Strange Issue With Static Global Variable in Native

2013-12-07 Thread Alan Bateman
On 07/12/2013 01:22, Dan Xu wrote: Hi All, When working on src/solaris/native/sun/net/spi/DefaultProxySelector.c, previously I tried to cached a jobject (The cached java object is java.net.Proxy.NO_PROXY, which is a special type of Proxy.) as a global static variable, no_proxy, in this c file