This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: libgcj and the NPTL posix threads implementation
- From: Anthony Green <green at redhat dot com>
- To: "Boehm, Hans" <hans dot boehm at hp dot com>
- Cc: "'Michael Koch'" <konqueror at gmx dot de>, java at gcc dot gnu dot org
- Date: Thu, 04 Mar 2004 18:17:20 -0800
- Subject: RE: libgcj and the NPTL posix threads implementation
- Organization: Red Hat, Inc.
- References: <0C3EFB691636964BBF914AE56AE83A89501FA5@hplex4.hpl.hp.com>
On Mon, 2004-03-01 at 14:28, Boehm, Hans wrote:
> The collector does use pthread mutexes in the gcj configuration. But that's because
> thread-local allocation is enabled, and the small object allocations should not
> normally involve locking.
I'm finding that every allocation results in calls to
pthread_mutex_trylock().
Put breakpoints on _Jv_AllocBytes, _Jv_AllocPtrFreeObject and
pthread_mutex_try. You'll see that phtread_mutex_try follows every
_Jv_Alloc* call.
AG
--
Anthony Green <green@redhat.com>
Red Hat, Inc.