• Toon Verwaest's avatar
    [profiler] Make ScrapeNativeContext check types and only run it where safe. · 2dbcdc02
    Toon Verwaest authored
    Previously ScrapeNativeContext was written quite defensively which could result
    in false positives and crashes.
    
    This CL makes the function always bail out when we're running on non-ia32/x64
    since only those 2 properly verify whether the program is setting up a frame.
    If we are setting up a frame, the context will be garbage.
    
    This CL also disables profiler tests when TSAN is running since TSAN makes
    ScrapeNativeContext unsafe: it considers SIGPROF asynchronous and will run the
    handler after the program has already run further than the context that's
    passed into the handler.
    
    Bug: v8:9860, v8:9869
    Change-Id: I5a08374feba2e0e77ddd59e02dc2d7e9c90c2e04
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1866469Reviewed-by: 's avatarPeter Marshall <petermarshall@chromium.org>
    Commit-Queue: Toon Verwaest <verwaest@chromium.org>
    Auto-Submit: Toon Verwaest <verwaest@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#64354}
    2dbcdc02
Name
Last commit
Last update
..
OWNERS Loading commit data...
allocation-tracker.cc Loading commit data...
allocation-tracker.h Loading commit data...
circular-queue-inl.h Loading commit data...
circular-queue.h Loading commit data...
cpu-profiler-inl.h Loading commit data...
cpu-profiler.cc Loading commit data...
cpu-profiler.h Loading commit data...
heap-profiler.cc Loading commit data...
heap-profiler.h Loading commit data...
heap-snapshot-generator-inl.h Loading commit data...
heap-snapshot-generator.cc Loading commit data...
heap-snapshot-generator.h Loading commit data...
profile-generator-inl.h Loading commit data...
profile-generator.cc Loading commit data...
profile-generator.h Loading commit data...
profiler-listener.cc Loading commit data...
profiler-listener.h Loading commit data...
sampling-heap-profiler.cc Loading commit data...
sampling-heap-profiler.h Loading commit data...
strings-storage.cc Loading commit data...
strings-storage.h Loading commit data...
tick-sample.cc Loading commit data...
tick-sample.h Loading commit data...
tracing-cpu-profiler.cc Loading commit data...
tracing-cpu-profiler.h Loading commit data...