Bug 814312 - Avoid PL_ArenaPool recycling in the layout engine. r=roc.

--HG--
extra : rebase_source : 7aaa3d745583c595692f1effd933cc70931194ff
This commit is contained in:
Nicholas Nethercote 2012-11-25 14:40:28 -08:00
Родитель 5ab939777a
Коммит 0e97b98462
2 изменённых файлов: 0 добавлений и 11 удалений

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

@ -666,7 +666,6 @@ nsDisplayListBuilder::~nsDisplayListBuilder() {
nsCSSRendering::EndFrameTreesLocked();
PL_FreeArenaPool(&mPool);
PL_FinishArenaPool(&mPool);
MOZ_COUNT_DTOR(nsDisplayListBuilder);
}

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

@ -117,16 +117,6 @@ nsLineLayout::~nsLineLayout()
NS_ASSERTION(nullptr == mRootSpan, "bad line-layout user");
// PL_FreeArenaPool takes our memory and puts in on a global free list so
// that the next time an arena makes an allocation it will not have to go
// all the way down to malloc. This is desirable as this class is created
// and destroyed in a tight loop.
//
// I looked at the code. It is not technically necessary to call
// PL_FinishArenaPool() after PL_FreeArenaPool(), but from an API
// standpoint, I think we are susposed to. It will be very fast anyway,
// since PL_FreeArenaPool() has done all the work.
PL_FreeArenaPool(&mArena);
PL_FinishArenaPool(&mArena);
}