• zhiguo's avatar
    Fix a crash due to enabling VTune JIT support · f044f91d
    zhiguo authored
    When VTune JIT support is enabled, the WasmEngine of an Isolate tries to
    enable code logging by EnableCodeLogging() method. This multithreaded
    method requires a Mutex for safety. However, as the WasmEngine is not
    created, the Mutex of it is not initialized. An attempt of acquiring
    this Mutex results in an error. The bug is fixed by creating WasmEngine
    before it enables code logging.
    
    Change-Id: I59e749190288ec412f6661233e8f62b0dff3cd7f
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1337376Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#60060}
    f044f91d
log.cc 70.2 KB