Add faq for non-main thread init crash (#1384)

This commit is contained in:
Divy Srivastava 2024-01-06 17:20:07 +05:30 committed by GitHub
parent 20262ae895
commit e4cdf58665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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**