From e4cdf5866520a56d1e4cda6d3bc188b41033cfe9 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Sat, 6 Jan 2024 17:20:07 +0530 Subject: [PATCH] Add faq for non-main thread init crash (#1384) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 9ecb476d..cc0617d7 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,14 @@ increasing amount of V8's API in Rust. Use `export GN_ARGS="no_inline_line_tables=false"` during build. +**My program crashes when initializing on non-main thread** + +Initializing V8 on a non-main thread with the CPUs PKU feature enabled might +lead to crashes. You can work around this problem by using +`v8::new_unprotected_default_platform`. + +See https://github.com/denoland/rusty_v8/issues/1381 + ## For maintainers **Cut a release**