Commit c2abfe75 authored by alph's avatar alph Committed by Commit bot

Fix MSAN warning on simulator during cpu profiling.

CPU profiler probes stack frame to find if it's in a valid
state. Under simulator it might happen the frame is not
initialized and MSAN repors that. That's totally ok.
Suppress the warning.

BUG=v8:4751
LOG=N

Review URL: https://codereview.chromium.org/1700533003

Cr-Commit-Position: refs/heads/master@{#34061}
parent d1987177
...@@ -414,6 +414,12 @@ StackFrame::Type StackFrame::ComputeType(const StackFrameIteratorBase* iterator, ...@@ -414,6 +414,12 @@ StackFrame::Type StackFrame::ComputeType(const StackFrameIteratorBase* iterator,
// the VM with a signal at any arbitrary instruction, with essentially // the VM with a signal at any arbitrary instruction, with essentially
// anything on the stack. So basically none of these checks are 100% // anything on the stack. So basically none of these checks are 100%
// reliable. // reliable.
#if defined(USE_SIMULATOR)
MSAN_MEMORY_IS_INITIALIZED(
state->fp + StandardFrameConstants::kContextOffset, kPointerSize);
MSAN_MEMORY_IS_INITIALIZED(
state->fp + StandardFrameConstants::kMarkerOffset, kPointerSize);
#endif
if (StandardFrame::IsArgumentsAdaptorFrame(state->fp)) { if (StandardFrame::IsArgumentsAdaptorFrame(state->fp)) {
// An adapter frame has a special SMI constant for the context and // An adapter frame has a special SMI constant for the context and
// is not distinguished through the marker. // is not distinguished through the marker.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment