美文网首页
v8学习备忘录

v8学习备忘录

作者: taiyosen | 来源:发表于2024-09-26 16:18 被阅读0次

    Disposing the isolate that is entered by a thread

    如图,如果把花括号注释掉,运行会报错:
    Fatal error in v8::Isolate::Dispose() Disposing the isolate that is entered by a thread.

    企业微信截图_17271687337294.png
    企业微信截图_17271687875695.png
    原因和作用域有关,看下图:
    v8::Isolate::Scope
    image.png

    void Isolate::Enter

    image.png
    Isolate::Dispose
    image.png

    Fatal signal 4 (SIGILL), code 2 (ILL_ILLOPN), fault addr 0x7472705dfd00 in tid xxx

    如图,函数定义了返回值类型void*,但是没有返回值,导致报错:
    Fatal signal 4 (SIGILL), code 2 (ILL_ILLOPN), fault addr 0x7472705dfd00 in tid xxx

    image.png

    相关文章

      网友评论

          本文标题:v8学习备忘录

          本文链接:https://www.haomeiwen.com/subject/rdhqrjtx.html