Patch: Implement Class.getSigners
Bryce McKinlay
bryce@mckinlay.net.nz
Thu Oct 9 23:58:00 GMT 2003
On Oct 10, 2003, at 12:03 PM, Tom Tromey wrote:
> Bryce> Shouldn't we get rid of _Jv_InitClassFields? There doesn't seem
> to be
> Bryce> a need to set all these fields, because _Jv_AllocObject does
> that
> Bryce> anyway.
>
> We also call it from prims.cc:_Jv_InitPrimClass(). That call seems to
> be actually needed. There's probably a better way to do this.
Since these are static-storage allocated they should also be
zero-initialized, right? Or is that not guaranteed on all platforms?
> I'd really like it if we got rid of the requirement to add a new
> clause to the marker every time we add a field to Class. Forgetting
> this has caused bugs for us before.
Yeah. I guess we'll have to come up with something to handle the
marking if we're going to put class fields into the class objects for
the new ABI. Its pretty ugly at the moment with all the special cases
in there.
Regards,
Bryce.
More information about the Java-patches
mailing list