Closed Bug 515874 Opened 15 years ago Closed 15 years ago

TM: add a way to flush CodeAllocs without deleting/recreating [nanojit]

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: gal, Assigned: gal)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

VMAllocators can already do this.
Attached patch patchSplinter Review
Assignee: general → gal
Attachment #399960 - Flags: review?(graydon)
Attachment #399960 - Flags: review?(graydon) → review+
Code looks fine and harmless, may as well.

Odd though, is this needed for making Assemblers short-lived? I'd have thought the opposite: that making them short-lived would *remove* the need for any kind of reset function (which plainly we're making-do without, presently).
The assembler and filter create temporary data, which we will allocate from a tempAlloc in the compiler (TraceRecorder and NativeRegExpCompiler). There the allocator will simply be destroyed. For the dataAlloc (currently allocator) and codeAlloc we can use reset().
Summary: add a way to flush CodeAllocs without deleting/recreating [nanojit] → TM: add a way to flush CodeAllocs without deleting/recreating [nanojit]
http://hg.mozilla.org/tracemonkey/rev/01fc5bf1d21a
Whiteboard: fixed-in-tracemonkey
http://hg.mozilla.org/mozilla-central/rev/01fc5bf1d21a
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: