From 8dfaa246d4d97adf4a94a244979606f4fd158da8 Mon Sep 17 00:00:00 2001 From: Paul Bone Date: Fri, 14 Jun 2019 05:35:43 +0000 Subject: [PATCH] Bug 1476845 - Update IsThingPoisoned r=jonco Not all the listed poison values were used in IsThingPoisoned Differential Revision: https://phabricator.services.mozilla.com/D33449 --HG-- extra : moz-landing-system : lando --- js/src/gc/Marking.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/gc/Marking.cpp b/js/src/gc/Marking.cpp index a16256b1ed71..fd93b4bb809c 100644 --- a/js/src/gc/Marking.cpp +++ b/js/src/gc/Marking.cpp @@ -130,8 +130,8 @@ static inline bool IsThingPoisoned(T* thing) { JS_ALLOCATED_NURSERY_PATTERN, JS_FRESH_TENURED_PATTERN, JS_MOVED_TENURED_PATTERN, JS_SWEPT_TENURED_PATTERN, JS_ALLOCATED_TENURED_PATTERN, JS_FREED_HEAP_PTR_PATTERN, - JS_SWEPT_TI_PATTERN, JS_SWEPT_CODE_PATTERN, - JS_FREED_CHUNK_PATTERN}; + JS_FREED_CHUNK_PATTERN, JS_FREED_ARENA_PATTERN, + JS_SWEPT_TI_PATTERN, JS_SWEPT_CODE_PATTERN}; const int numPoisonBytes = sizeof(poisonBytes) / sizeof(poisonBytes[0]); uint32_t* p = reinterpret_cast(reinterpret_cast(thing) + 1);