From ef424fecdfadb8a9c6498234d463193b250c47cc Mon Sep 17 00:00:00 2001 From: Hugh Sanderson Date: Mon, 30 Oct 2023 16:24:02 +0800 Subject: [PATCH] No gc blocking in jsprime --- project/src/common/ExternalInterface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/project/src/common/ExternalInterface.cpp b/project/src/common/ExternalInterface.cpp index 1095513d5..05d05fbaf 100644 --- a/project/src/common/ExternalInterface.cpp +++ b/project/src/common/ExternalInterface.cpp @@ -4149,7 +4149,9 @@ struct ValueAppDataCallback : public IAppDataCallback void beginCallbacks() { + #ifndef HXCPP_JS_PRIME unblocked = gc_try_unblocking(); + #endif } void onAppData(int marker, const uint8 *inBytes,int inLen ) @@ -4170,8 +4172,10 @@ struct ValueAppDataCallback : public IAppDataCallback void endCallbacks() { + #ifndef HXCPP_JS_PRIME if (unblocked) gc_enter_blocking(); + #endif } };