Re: [Sablevm-developer] NewGlobalRef
Brought to you by:
egagnon
From: Etienne G. <gag...@uq...> - 2004-01-19 21:08:41
|
David B=E9langer wrote: >>From my understanding of global refs, *obj cannot be NULL in correct co= de > as null is represented by obj =3D=3D NULL. Is there any > situation that *obj could be NULL? I think that it is possible, because I do "pre-allocate" global refs for static fields, which are NULL by default. On the other hand, I think it would be a correct assumption that JNI code= cannot create such global refs. If you wish to remove it, please add an assertion, e.g.: assert (obj =3D=3D NULL || *obj !=3D NULL); Etienne --=20 Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |