Bug 1275190 - Assert against null entries in the SavedFrame hash set's hash policy. r=jimb
authorNick Fitzgerald <fitzgen@gmail.com>
Tue, 24 May 2016 11:23:00 -0400
changeset 340263 0d9cbc1fdbe9baac069a21caec3c98a239a8f331
parent 340262 d4a5ef2ca595a3f3fcafd16062c4f1c22ce35c79
child 340264 be67702cf86eda352626dc73d0f59308d479a333
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimb
bugs1275190
milestone49.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 1275190 - Assert against null entries in the SavedFrame hash set's hash policy. r=jimb
js/src/vm/SavedStacks.cpp
--- a/js/src/vm/SavedStacks.cpp
+++ b/js/src/vm/SavedStacks.cpp
@@ -241,16 +241,18 @@ SavedFrame::HashPolicy::hash(const Looku
                      lookup.asyncCause,
                      SavedFramePtrHasher::hash(lookup.parent),
                      JSPrincipalsPtrHasher::hash(lookup.principals));
 }
 
 /* static */ bool
 SavedFrame::HashPolicy::match(SavedFrame* existing, const Lookup& lookup)
 {
+    MOZ_ASSERT(existing);
+
     if (existing->getLine() != lookup.line)
         return false;
 
     if (existing->getColumn() != lookup.column)
         return false;
 
     if (existing->getParent() != lookup.parent)
         return false;