Bug 1333276 - Remove length checks on non-deterministic nativeStack memoryMap and stack properties. r=jchen
authorMike Conley <mconley@mozilla.com>
Mon, 06 Mar 2017 18:04:00 -0500
changeset 346332 fb390c90564859e9e5aa4984c49aa8048dbabe1e
parent 346331 7ffc126263977899683fda7be4cf14e7498357da
child 346333 93fa88dcfe7dd06aab587bb9058ebab8a7f1075e
push id31464
push userkwierso@gmail.com
push dateWed, 08 Mar 2017 00:27:44 +0000
treeherdermozilla-central@dd92d0734a26 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1333276
milestone55.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 1333276 - Remove length checks on non-deterministic nativeStack memoryMap and stack properties. r=jchen MozReview-Commit-ID: IVX8EGYD6nk
toolkit/components/telemetry/tests/unit/test_ThreadHangStats.js
--- a/toolkit/components/telemetry/tests/unit/test_ThreadHangStats.js
+++ b/toolkit/components/telemetry/tests/unit/test_ThreadHangStats.js
@@ -86,19 +86,17 @@ function run_test() {
 
       // Native stack gathering is only enabled on Windows.
       if (mozinfo.os == "win") {
         // Make sure one of the hangs is a permanent
         // hang containing a native stack.
         ok(endHangs.hangs.some((hang) => (
           hang.nativeStack &&
           Array.isArray(hang.nativeStack.memoryMap) &&
-          hang.nativeStack.memoryMap.length !== 0 &&
-          Array.isArray(hang.nativeStack.stacks) &&
-          hang.nativeStack.stacks.length !== 0
+          Array.isArray(hang.nativeStack.stacks)
         )));
       }
 
       check_histogram(endHangs.hangs[0].histogram);
 
       do_test_finished();
     };