зеркало из https://github.com/mozilla/pjs.git
Bugzilla Bug 238563: removed PR_ASSERT from pr_ZoneRealloc because it is
redundant with the DEBUG fprintf. (Darin Fisher of Google pointed out this problem in his code review.)
This commit is contained in:
Родитель
5f2160d3f3
Коммит
f2d18093dd
|
@ -334,7 +334,6 @@ pr_ZoneRealloc(void *oldptr, PRUint32 bytes)
|
|||
if (!oldptr)
|
||||
return pr_ZoneMalloc(bytes);
|
||||
mb = (MemBlockHdr *)((char *)oldptr - (sizeof *mb));
|
||||
PR_ASSERT(mb->s.magic == ZONE_MAGIC);
|
||||
if (mb->s.magic != ZONE_MAGIC) {
|
||||
/* Maybe this just came from ordinary malloc */
|
||||
#ifdef DEBUG
|
||||
|
|
Загрузка…
Ссылка в новой задаче