Closed
Bug 620291
Opened 14 years ago
Closed 13 years ago
useless assert of free_block [@ CodeAlloc::free]
Categories
(Core Graveyard :: Nanojit, defect)
Core Graveyard
Nanojit
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: timeless, Assigned: timeless)
Details
(Keywords: coverity, crash, Whiteboard: fixed-in-nanojit, fixed-in-tracemonkey, fixed-in-tamarin)
Crash Data
Attachments
(1 file)
1.08 KB,
patch
|
gal
:
review+
edwsmith
:
review+
|
Details | Diff | Splinter Review |
147 void CodeAlloc::free(NIns* start, NIns *end) {
182 CodeList* free_block = availblocks;
there's no point in using free_block as a loop control:
183 while ( free_block && free_block->next != coalescedBlock) {
184 NanoAssert(free_block->size() >= minAllocSize);
185 NanoAssert(free_block->isFree);
186 NanoAssert(free_block->next);
187 free_block = free_block->next;
188 }
or asserting it:
189 NanoAssert(free_block && free_block->next == coalescedBlock);
if you're just going to crash anyway:
190 free_block->next = coalescedBlock->next;
Updated•14 years ago
|
Attachment #498683 -
Flags: review?(gal)
Attachment #498683 -
Flags: review?(edwsmith)
Attachment #498683 -
Flags: review+
Updated•14 years ago
|
Attachment #498683 -
Flags: review?(edwsmith) → review+
Keywords: checkin-needed
Comment 2•14 years ago
|
||
Keywords: checkin-needed
Whiteboard: fixed-in-tracemonkey
Comment 3•14 years ago
|
||
Urg, and backed out in http://hg.mozilla.org/tracemonkey/rev/8e517eae885d when I suddenly realized *why* edwsmith was reviewing it. Maybe if it's in the nanojit component, I'll realize it's not something I want to push.
Component: JavaScript Engine → Nanojit
Keywords: checkin-needed
QA Contact: general → nanojit
Whiteboard: fixed-in-tracemonkey
Comment 4•14 years ago
|
||
cdleary-bot mozilla-central merge info:
http://hg.mozilla.org/mozilla-central/rev/a26c9e7823e4
Note: not marking as fixed because fixed-in-tracemonkey is not present on the whiteboard.
Comment 5•14 years ago
|
||
Comment 6•14 years ago
|
||
this was backed-out but still has a checkin-needed flag. Needs fixin'?
i think it's something that would want to be pushed or managed by someone from nanojit to a nanojit tree instead of to a tracemonkey/m-c tree.
Comment 8•14 years ago
|
||
Keywords: checkin-needed
Whiteboard: fixed-in-nanojit
Comment 9•14 years ago
|
||
Whiteboard: fixed-in-nanojit → fixed-in-nanojit, fixed-in-tracemonkey
Comment 10•14 years ago
|
||
changeset: 6079:aaee24b632ed
user: timeless@mozdev.org
summary: Bug 620291 - useless assert of free_block [@ CodeAlloc::free]. r=gal,edwsmith.
http://hg.mozilla.org/tamarin-redux/rev/aaee24b632ed
Updated•14 years ago
|
Whiteboard: fixed-in-nanojit, fixed-in-tracemonkey → fixed-in-nanojit, fixed-in-tracemonkey, fixed-in-tamarin
Updated•13 years ago
|
Crash Signature: [@ CodeAlloc::free]
Updated•13 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•