libgcj and the NPTL posix threads implementation
Anthony Green
green@redhat.com
Fri Mar 5 02:17:00 GMT 2004
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