• Andreas Haas's avatar
    [wasm][traphandler] Mark code object validation check as slow · bf505216
    Andreas Haas authored
    In the trap handler we validate the list of registered code objects
    every time we register or de-register a new code object. The complexity
    of this validation is O(num-code-objects * num-instructions). For big
    WebAssembly modules with several hundred thousand code objects, this
    validation causes significant overhead (we saw up to 10x) and makes
    debugging very tedious. With this CL I mark the validation as slow.
    Thereby it is still enabled in most tests on our bots, but it is
    possible to disable validation when debugging large web applications.
    
    The referenced bug issue was created by developers who had problems
    with debugging because of this issue.
    
    R=mark@chromium.org
    
    Bug: v8:8536
    Change-Id: If7ecb554eebcb04eb43a1f791b96c7a42a47e60f
    Reviewed-on: https://chromium-review.googlesource.com/c/1442634Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
    Commit-Queue: Andreas Haas <ahaas@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#59181}
    bf505216
Name
Last commit
Last update
..
DEPS Loading commit data...
OWNERS Loading commit data...
handler-inside-posix.cc Loading commit data...
handler-inside-posix.h Loading commit data...
handler-inside-win.cc Loading commit data...
handler-inside-win.h Loading commit data...
handler-inside.cc Loading commit data...
handler-outside-posix.cc Loading commit data...
handler-outside-win.cc Loading commit data...
handler-outside.cc Loading commit data...
handler-shared.cc Loading commit data...
trap-handler-internal.h Loading commit data...
trap-handler.h Loading commit data...