Bug 1240717 - initialize stackAddress_ with nullptr in order to prevent garbage value. r=jorendorff
authorBogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Tue, 19 Jan 2016 15:03:35 +0200
changeset 280746 a818b21e184ffca8f770923b0459c0082f2837fd
parent 280745 5df98a0e4cdd3b78e145ce3b569730989351588e
child 280747 c206156920e79194ae28b902fe9727f26786c1ae
push id29922
push usercbook@mozilla.com
push dateThu, 21 Jan 2016 10:51:00 +0000
treeherdermozilla-central@977d78a8dd78 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff
bugs1240717
milestone46.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1240717 - initialize stackAddress_ with nullptr in order to prevent garbage value. r=jorendorff
js/src/asmjs/WasmFrameIterator.cpp
--- a/js/src/asmjs/WasmFrameIterator.cpp
+++ b/js/src/asmjs/WasmFrameIterator.cpp
@@ -510,16 +510,17 @@ ProfilingFrameIterator::initFromFP(const
 typedef JS::ProfilingFrameIterator::RegisterState RegisterState;
 
 ProfilingFrameIterator::ProfilingFrameIterator(const WasmActivation& activation,
                                                const RegisterState& state)
   : module_(&activation.module()),
     codeRange_(nullptr),
     callerFP_(nullptr),
     callerPC_(nullptr),
+    stackAddress_(nullptr),
     exitReason_(ExitReason::None)
 {
     // If profiling hasn't been enabled for this module, then CallerFPFromFP
     // will be trash, so ignore the entire activation. In practice, this only
     // happens if profiling is enabled while module->active() (in this case,
     // profiling will be enabled when the module becomes inactive and gets
     // called again).
     if (!module_->profilingEnabled()) {