This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: performance problems


>>>>> "Kresten" == Kresten Krab Thorup <krab@gnu.org> writes:

Kresten> First, the monitor structure is always stack allocated, so it
Kresten> doesn't take up space.

If we did this wouldn't we have to build information about the size of
a synchronization object into the compiler?

Hmm... we could put the info into libgcj.spec.  This approach would
definitely be faster than what we do now (since now synchronization
involves heap allocation and finalization, both of which are slow).

This would require changes to the compiler and to some code in
natObject.cc, but I don't think the thread implementations would need
to be touched.

Tom

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]