classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about Boolean


From: Brian Jones
Subject: Re: Question about Boolean
Date: 20 Jul 2001 15:55:35 -0400
User-agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7

Tom Tromey <address@hidden> writes:

> >>>>> "Mark" == Mark Wielaard <address@hidden> writes:
> 
> Mark> Would it not be simpler to add a VMClassLoader class to libgcj
> Mark> that implements the getPrimitiveClass() method?
> 
> I'd prefer not to, simply because the current implementation is more
> efficient.  It is just a single relocation.  I'm just going to punt on
> the problem for now.  Perhaps we can just maintain a 1-line divergence
> here.  It turns out there's another gcj-specific hack we'd like in
> Integer.  These sorts of details are what makes the merging go so slow
> -- I sometimes have time for a quick 1-class merge, but only if it
> doesn't involve solving a bigger problem.

I think that if the boolean.class special handling is specific to gcj
and not CNI then it probably should be separated out as a VM
dependency as others have suggested.  Also as others have said, there
is little reason for bothering with efficiency in this case.

I think questions such as CNI/JNI differences like the loading of
libraries in static initializers can be done with the configure setup
we have now (already implemented).  

Some other things, like multiple String implementations or similar
probably call for a mixture of things like selection through configure
causing a copy to the correct file to $builddir/proper_name to the
preprocessing suggested earlier as well.

So would it be okay to merge those classes on the basis that the
boolean.class issue is strictly a gcj thing as opposed to a CNI thing
and add this to the VM* layer?

Brian
-- 
Brian Jones <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]