[Sablevm-developer] trivial <clinit>s at bootstrap [was: Re: [Sablevm-developer] _svmt_interned_str
Brought to you by:
egagnon
From: Grzegorz B. P. <ga...@de...> - 2004-03-28 20:37:42
|
W li=B6cie z nie, 28-03-2004, godz. 12:21, Etienne Gagnon pisze:=20 > Hi David, >=20 > David B=E9langer wrote: > > One of the bug reports concern the type _svmt_interned_string_struct > > that is unused. The String.intern() is implemented in Java. > >=20 > > Is there any future or unimplemented use for > > _svmt_interned_string_struct: >=20 > Not that I know of. Early versions of SableVM needed it, until I simpl= ified > the bootstrap process (thus the static initialization restrictions). ...speaking of which: I tried to remove comments for things like: //private static final long serialVersionUID =3D 3206093459760846163L; from ex. java.io.Serializable and apparently, when the code is compiled with the latest jikes SableVM bombs out in initialization.c when finds <clinit> method that contains initialization of this field. Q: Assuming for the moment that I don't care what is inside of <clinit> what method should I call here, from within svmf_special_initialization (_svmt_JNIEnv *env, _svmt_class_info *class) to execute this method ? Q: Do we have any flag that says that we're in bootstrap stage (I haven't found any), or should I add one (in env, I guess)? Q: Wouldn't prepare_code.c be good place to restrict what bytecodes can be prepared for execution at bootstrap stage? GBP --=20 Grzegorz B. Prokopski <ga...@de...> Debian GNU/Linux http://www.debian.org SableVM - LGPLed JVM http://www.sablevm.org Why SableVM ?!? http://devel.sablevm.org/wiki/WhySableVM |