libgcj and the NPTL posix threads implementation
Boehm, Hans
hans.boehm@hp.com
Fri Mar 5 17:43:00 GMT 2004
Thanks.
I'm currently digging around there to clean up the libgcj-collector interface
(to get rid of the include of collector-private files) and
to get the collector backtrace stuff to work with gcj. I'll look at this as well.
Hans
> -----Original Message-----
> From: Anthony Green [mailto:green@redhat.com]
> Sent: Thursday, March 04, 2004 6:17 PM
> To: Boehm, Hans
> Cc: 'Michael Koch'; java@gcc.gnu.org
> Subject: RE: libgcj and the NPTL posix threads implementation
>
>
> 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.
>
More information about the Java
mailing list