bnjbvr opened PR #6024 from jitdump-multiple-engines
to main
:
We create a new
JitDumpAgent
perwasmtime::Engine,
, and the former creates a new jit dump file in its constructor. Since the jit dump file name has to be unique and must follow the format expected byperf inject
, the file name is a constant. This causes a bug that multipleEngine
s creations will clobber the jit dump file. Because of the file name requirement, we can't simply add a counter suffix in the jit dump file name, because thenperf inject
wouldn't find the files anymore.Instead, we can use a single, per-process JIT dump file, that's shared across all the
wasmtime::Engine
; this works well in practice, and moves the mutex inJitDumpAgent
in the outside world.
alexcrichton submitted PR review.
alexcrichton merged PR #6024.
Last updated: Nov 22 2024 at 17:03 UTC