Very poor performance of JNI AttachCurrentThread on Linux
David Holmes
david.holmes at oracle.com
Wed Feb 27 20:18:38 PST 2013
On 27/02/2013 11:41 PM, Andrew Haley wrote:
> 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.
Sure but the vast majority of applications only do that once, so it
isn't an issue for them.
Anyway this is on Dmitry's to-do list.
David
-----
> Andrew.
>
More information about the hotspot-dev
mailing list