Displaying 1 result from an estimated 1 matches for "pthread_lock".
2006 Dec 23
1
Re: Xapian jni
...t; org.xapian object is overriden and among other things it calls native
> method that removes the object's "C-shadow" from the hashmap.
Eric's the real authority on this (since he wrote it) but that sounds
about right to me.
> This is done in a synchronized fashion (under pthread_lock). It seems
> to be working fine, however when large application runs in a tight
> loop it is slowed down by garbage collection.
I'm not sure I see why this would slow things down (unless it's an SMP
machine), but there is some overhead to this locking, and it complicates
building on...