diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-10-11 13:54:16 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-10-19 20:21:51 +0200 |
| commit | 08bb24dd0a5c97bfefa8bb29d6c43af4525abd64 (patch) | |
| tree | 56498eeb2f1db85da9d06c47a66f7a065af420ee /src/corelib/serialization/qjsonarray.cpp | |
| parent | ba1eec62a864428e4486b1e15f41ff06fc8f60d4 (diff) | |
JNI: make QJniArray class use stored JNI environment
Instead of creating a temporary QJniEnvironment for each access to the
array, reuse the one stored in the QJniObject. This is much more
efficient, and also protects against invalid access to the array from
multiple threads.
Change-Id: Id253a51ca64d4b3af333b14ec62ae176e1663604
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'src/corelib/serialization/qjsonarray.cpp')
0 files changed, 0 insertions, 0 deletions
