• Peter Marshall's avatar
    [tracing] Fix test TraceWriter to expect uninitialized TraceObjects · 077a1658
    Peter Marshall authored
    The TraceObject passed to AppendTraceEvent can be completely
    uninitialized (set to all 0s) in some situations where a flush happens
    between creation and initialization of the TraceObject.
    
    Fix the MockTraceWriter in test-tracing to expect nullptr strings for
    the name of the object so that it does not try to construct an
    std::string from a null char*.
    
    Bug: v8:9214
    Change-Id: Ib4f3b039ab98d5d786991134cb71ecc62f127179
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1598751
    Commit-Queue: Peter Marshall <petermarshall@chromium.org>
    Commit-Queue: Simon Zünd <szuend@chromium.org>
    Auto-Submit: Peter Marshall <petermarshall@chromium.org>
    Reviewed-by: 's avatarSimon Zünd <szuend@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#61265}
    077a1658
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-js Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
OWNERS Loading commit data...