summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlarryh%netscape.com <devnull@localhost>2001-07-27 20:34:04 +0000
committerlarryh%netscape.com <devnull@localhost>2001-07-27 20:34:04 +0000
commit676ad94ebfc91521152edf0fd7fea9d1ab1c3da1 (patch)
tree01622d647a6e65e4dbeb286d749fabaac540c1fc
parent826d35d3fafca3d2f100ae8b03445d3858946177 (diff)
downloadnspr-hg-676ad94ebfc91521152edf0fd7fea9d1ab1c3da1.tar.gz
Bugzilla: 92610. Mozilla on MacOS crashes in plarena
-rw-r--r--lib/ds/plarena.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ds/plarena.c b/lib/ds/plarena.c
index e1eb7960..fa800190 100644
--- a/lib/ds/plarena.c
+++ b/lib/ds/plarena.c
@@ -206,7 +206,7 @@ PR_IMPLEMENT(void *) PL_ArenaAllocate(PLArenaPool *pool, PRUint32 nb)
/* attempt to allocate from the heap */
{
PRUint32 sz = PR_MAX(pool->arenasize, nb);
- sz += (PRUword)PL_ARENA_ALIGN(pool, sizeof(*a)); /* force alignment */
+ sz += sizeof *a + pool->mask; /* header and alignment slop */
a = (PLArena*)PR_MALLOC(sz);
if ( NULL != a ) {
a->limit = (PRUword)a + sz;