Very poor performance of JNI AttachCurrentThread on Linux
Andrew Haley
aph at redhat.com
Wed Feb 27 05:41:16 PST 2013
On 02/27/2013 01:06 PM, David Holmes wrote:
> On 27/02/2013 8:19 PM, Andrew Haley wrote:
>> On 02/26/2013 08:38 PM, Dmitry Samersoff wrote:
>>> Is there a performance problems with other applications?
>>
>> Other than what? Every usage of JNI AttachCurrentThread is severely
>> impacted.
>
> In a debug build this affects all threads. Otherwise it only affects the
> main thread - or should. Are you seeing something different? The "other
> application" is LibreOffice where the main thread keeps attaching and
> detaching.
Right, that's the one. But I don't understand what the question is for --
we have found that JNI AttachCurrentThread is very slow when the main
thread is involved. I don't see what the application in question has
to do with anything: this happens to every application that calls
AttachCurrentThread from the main thread.
Andrew.
More information about the hotspot-dev
mailing list