how to choose the threading system to use with gcj

Tom Tromey tromey@cygnus.com
Mon Nov 15 22:09:00 GMT 1999


>>>>> "Godmar" == Godmar Back <gback@cs.utah.edu> writes:

Godmar> while studying the egcs/gcj sources I gained the impression
Godmar> that the choice of the threading system is a configure option
Godmar> not only to the java-specific run-time system libgcj, but also
Godmar> to some language-independent parts of gcc's run-time.
Yes, that's right.
Godmar> Because of the (currently) small size of the gthread
Godmar> interface, this should only be a few lines of code. If I did
Godmar> that, would there be any obstacles in including that generic
Godmar> interface into the gcc source code base?
You have to ask the gcc maintainers this question. The libgcj hackers
really only deal with the gcj front end; generic gcc questions have to
be handled via the other gcc developers.
Godmar> How do other people feel about this issue? 
I agree with you. In fact this is a problem because it means you have
to rebuild libgcc for every different OS; without threads you can use
a single gcc to target any OS running on a given target.
The other night it occurred to me that just using spinlocks in this
code might be reasonable (depending on how long the lock is going to
be held), or at least a reasonable alternativ.
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /