This is the mail archive of the java@gcc.gnu.org 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]
Other format: [Raw text]

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.


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