diff options
author | larryh%netscape.com <devnull@localhost> | 2001-07-27 20:34:04 +0000 |
---|---|---|
committer | larryh%netscape.com <devnull@localhost> | 2001-07-27 20:34:04 +0000 |
commit | 676ad94ebfc91521152edf0fd7fea9d1ab1c3da1 (patch) | |
tree | 01622d647a6e65e4dbeb286d749fabaac540c1fc | |
parent | 826d35d3fafca3d2f100ae8b03445d3858946177 (diff) | |
download | nspr-hg-676ad94ebfc91521152edf0fd7fea9d1ab1c3da1.tar.gz |
Bugzilla: 92610. Mozilla on MacOS crashes in plarena
-rw-r--r-- | lib/ds/plarena.c | 2 |
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; |