commit cce64bb246958555c9a37a519f474a892216bc11
parent dc9cf1136452a1fb6b712e92e32bd61ff150bbeb
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date:   Mon, 22 Apr 2024 16:41:49 +0200

fix(native): remap crash

Diffstat:
Mnative/jni/src/library.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/native/jni/src/library.cpp b/native/jni/src/library.cpp @@ -31,6 +31,8 @@ bool JNICALL init(JNIEnv *env, jobject clazz) { LOGD("client_module offset=0x%lx, size=0x%zx", client_module.base, client_module.size); + util::remap_sections(BUILD_PACKAGE); + auto threads = std::vector<std::thread>(); #define RUN(body) \ @@ -44,8 +46,6 @@ bool JNICALL init(JNIEnv *env, jobject clazz) { if (common::native_config->composer_hooks) { RUN(ComposerHook::init()); } - RUN(util::remap_sections(BUILD_PACKAGE)); - for (auto &thread : threads) { thread.join(); }