Skip to content

Commit

Permalink
Add a note about _NO_DEBUG_HEAP to the debugging document (bytecode…
Browse files Browse the repository at this point in the history
…alliance#6963)

While this is not at all WASM-specific, it is somewhat rare that
LLDB is used for native debugging on Windows, so the cause of
the slowdown on the order of 50x may not be immediately obvious.
  • Loading branch information
SingleAccretion authored Sep 5, 2023
1 parent e95c855 commit 9377dfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/examples-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ If you run into trouble, the following discussions might help:
(lldb) p *foo
```
- The address of the start of instance memory can be found in `__vmctx->memory`
- On Windows you may experience degraded WASM compilation throughput due to the
enablement of additional native heap checks when under the debugger by default.
You can set the environment variable `_NO_DEBUG_HEAP` to `1` to disable them.

0 comments on commit 9377dfd

Please sign in to comment.