aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api/FFI.h
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-08 00:28:14 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-08 00:28:14 -0800
commit3e9bb6859b5bd832da73ba48ede24eaf9cc1cbee (patch)
tree7747f8dadd1ab8a85c8b142fe605301ef0580f1b /src/bun.js/api/FFI.h
parent86f0b08b8d37389ab488bc413fd450c403d58dea (diff)
downloadbun-3e9bb6859b5bd832da73ba48ede24eaf9cc1cbee.tar.gz
bun-3e9bb6859b5bd832da73ba48ede24eaf9cc1cbee.tar.zst
bun-3e9bb6859b5bd832da73ba48ede24eaf9cc1cbee.zip
Stack allocate arguments to make it actually threadsafe
Diffstat (limited to 'src/bun.js/api/FFI.h')
-rw-r--r--src/bun.js/api/FFI.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/bun.js/api/FFI.h b/src/bun.js/api/FFI.h
index 4763c90a3..c218dc69a 100644
--- a/src/bun.js/api/FFI.h
+++ b/src/bun.js/api/FFI.h
@@ -109,8 +109,6 @@ static EncodedJSValue _FFI_Callback_call(void* ctx, size_t argCount, ZIG_REPR_TY
return_value.asZigRepr = FFI_Callback_call(ctx, argCount, args);
return return_value;
}
-static ZIG_REPR_TYPE arguments[100];
-
#endif
static bool JSVALUE_IS_CELL(EncodedJSValue val) __attribute__((__always_inline__));