diff options
| author | Christian Strømme <christian.stromme@digia.com> | 2013-10-24 16:24:48 +0200 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-25 18:11:51 +0200 |
| commit | 746f7a5b28d92d962ae261c52da4d750ea3b50f0 (patch) | |
| tree | 2d2acf3086a6693c82d6c8bad11a503e0851446e /src/concurrent/doc/snippets/code | |
| parent | e1325cf26e146b68725cc1a0a02b274ce3dfbe5c (diff) | |
QJNI: Don't detach from the thread as long as the thread is alive.
Attaching and detaching the current thread to/from the VM on each jni call,
causes a new thread object to be created and triggers GC when detaching
(GC alone takes anything between 10-30 ms to finish on the test device).
Instead of detaching when the environment object goes out of scope, we
now detach when the thread exits.
Task-number: QTBUG-34279
Change-Id: Ia613934e61f914d4be63bfa1be8fdecf849928b0
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
Diffstat (limited to 'src/concurrent/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions
