Closed
Bug 538393
Opened 14 years ago
Closed 14 years ago
Assembler allocates two code chunks for each assembly pass even if the code has no side exits
Categories
(Core Graveyard :: Nanojit, defect, P3)
Core Graveyard
Nanojit
Tracking
(Not tracked)
RESOLVED
FIXED
flash10.1
People
(Reporter: edwsmith, Assigned: edwsmith)
References
Details
(Whiteboard: fixed-in-nanojit, fixed-in-tamarin, fixed-in-tracemonkey)
Attachments
(1 file, 1 obsolete file)
6.54 KB,
patch
|
n.nethercote
:
review+
|
Details | Diff | Splinter Review |
We eagerly allocate code for side exits before we know we need it. In tamarin-redux this results in one extra code chunk being allocated and returned to CodeAlloc each time we jit, and we'd like to eliminate that overhead. It turns out a simple fix is to lazy-allocate memory for side exits.
Assignee | ||
Updated•14 years ago
|
Target Milestone: --- → flash10.1
Assignee | ||
Comment 1•14 years ago
|
||
Assignee: nobody → edwsmith
Attachment #420561 -
Flags: review?(graydon)
![]() |
||
Comment 2•14 years ago
|
||
Seems reasonable, but can you add a comment to Assembler::_nExitIns in Assembler.h mentioning it's not valid if there are no side exits because the underlying memory isn't allocated? Thanks.
Assignee | ||
Comment 3•14 years ago
|
||
yes, and i'll double make sure it's nulled out in that case.
Assignee | ||
Updated•14 years ago
|
Attachment #420561 -
Flags: review?(graydon) → review?(nnethercote)
Assignee | ||
Comment 4•14 years ago
|
||
Attachment #420561 -
Attachment is obsolete: true
Attachment #421106 -
Flags: review?(nnethercote)
Attachment #420561 -
Flags: review?(nnethercote)
![]() |
||
Updated•14 years ago
|
Attachment #421106 -
Attachment is patch: true
Attachment #421106 -
Attachment mime type: application/octet-stream → text/plain
![]() |
||
Updated•14 years ago
|
Attachment #421106 -
Flags: review?(nnethercote) → review+
Assignee | ||
Updated•14 years ago
|
Whiteboard: fixed-in-nanojit
Assignee | ||
Comment 5•14 years ago
|
||
pushed to nanojit-central http://hg.mozilla.org/projects/nanojit-central/rev/97bacc5dff62
Assignee | ||
Updated•14 years ago
|
Whiteboard: fixed-in-nanojit → fixed-in-nanojit fixed-in-tamarin
![]() |
||
Comment 6•14 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/5fe8a6fe07c4
Whiteboard: fixed-in-nanojit fixed-in-tamarin → fixed-in-nanojit, fixed-in-tamarin, fixed-in-tracemonkey
Assignee | ||
Updated•14 years ago
|
Priority: -- → P3
Comment 7•14 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/5fe8a6fe07c4
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•