From ffb2b400a45a83fe337ebc3736e033b3589415da Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Sat, 25 May 2013 14:40:09 -0700 Subject: [PATCH] Bug 876159 - Remove warnings that overflow maximum log size in CC-during-OOM cases, r=mccr8 CLOSED TREE --- xpcom/base/nsCycleCollector.cpp | 1 - xpcom/glue/nsDeque.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/xpcom/base/nsCycleCollector.cpp b/xpcom/base/nsCycleCollector.cpp index a928dfe22868..7e3fcee954a0 100644 --- a/xpcom/base/nsCycleCollector.cpp +++ b/xpcom/base/nsCycleCollector.cpp @@ -1885,7 +1885,6 @@ GCGraphBuilder::AddNode(void *s, nsCycleCollectionParticipant *aParticipant) { PtrToNodeEntry *e = static_cast(PL_DHashTableOperate(&mPtrToNodeMap, s, PL_DHASH_ADD)); if (!e) { - NS_WARNING("Hash table add in GCGraphBuilder::AddNode failed"); return nullptr; } diff --git a/xpcom/glue/nsDeque.cpp b/xpcom/glue/nsDeque.cpp index c4e4471e82ff..7fc205fad126 100644 --- a/xpcom/glue/nsDeque.cpp +++ b/xpcom/glue/nsDeque.cpp @@ -175,7 +175,6 @@ bool nsDeque::GrowCapacity() { */ nsDeque& nsDeque::Push(void* aItem) { if (mSize==mCapacity && !GrowCapacity()) { - NS_WARNING("out of memory"); return *this; } mData[modulus(mOrigin + mSize, mCapacity)]=aItem;