bnjbvr opened PR #6024 from jitdump-multiple-engines to main:
We create a new
JitDumpAgentperwasmtime::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 multipleEngines 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 injectwouldn'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 inJitDumpAgentin the outside world.
alexcrichton submitted PR review.
alexcrichton merged PR #6024.
Last updated: Dec 13 2025 at 19:03 UTC