Backed out changeset 4c5d2dbc051c (bug 1252075) for hazard failures

MozReview-Commit-ID: 4teKKva9Ydw
***
Backed out changeset 65a12991543f (bug 1252075) for hazard failures

MozReview-Commit-ID: GqMt4nsU3oQ

--HG--
extra : histedit_source : b50d86e8e65b4f0760954147c85186bb1513c5ef%2C6273c210d1bace2f294667dcd40d846624f7aa3e
This commit is contained in:
Wes Kocher 2016-02-29 15:56:09 -08:00
Родитель 1b31ff2423
Коммит 51d8f437d1
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -8,6 +8,8 @@
#include "js/RootingAPI.h" #include "js/RootingAPI.h"
#include "jsapi-tests/tests.h" #include "jsapi-tests/tests.h"
using mozilla::ScopedDeletePtr;
BEGIN_TEST(testGCHeapPostBarriers) BEGIN_TEST(testGCHeapPostBarriers)
{ {
#ifdef JS_GC_ZEAL #ifdef JS_GC_ZEAL
@ -44,7 +46,7 @@ TestHeapPostBarriers(T initialObj)
CHECK(js::gc::IsInsideNursery(initialObj)); CHECK(js::gc::IsInsideNursery(initialObj));
/* Construct Heap<> wrapper. */ /* Construct Heap<> wrapper. */
auto heapData = mozilla::MakeUnique<JS::Heap<T>>(); ScopedDeletePtr<JS::Heap<T>> heapData(new JS::Heap<T>);
CHECK(heapData.get()); CHECK(heapData.get());
CHECK(Passthrough(heapData->get() == nullptr)); CHECK(Passthrough(heapData->get() == nullptr));
*heapData = initialObj; *heapData = initialObj;