Closed Bug 1551810 Opened 5 years ago Closed 5 years ago

return bool from CallbackTracer and TraceEdgeInternal

Categories

(Core :: JavaScript: GC, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: allstars.chh, Assigned: allstars.chh)

References

Details

Attachments

(3 files, 4 obsolete files)

In order to fix bug 1359348, we need to update CallbackTracer (and possibly all its subclasses) to have a method returning bool, to let the callers know whether the edge is swept or moved, .... etc.

And also we will have to update the return value of TraceEdgeInternal.

(In reply to Yoshi Cheng-Hao Huang [:allstars.chh][:allstarschh] from comment #0)

a method returning bool, to let the callers know whether the edge is swept or moved, .... etc.

To be clear, this should return whether the edge still exists. And to make it consistent with error-returning functions it should return true in the normal case. So it should return false if the target of the edge was swept, and true at all other times.

This is just a draft impl to return bool from MovingTracer

This is a draft to dispatch to MovingTracer directly, otherwise I have
to update all CallbackTracers........

Depends on D31424

This is for the later patch, to return bool in TraceEdgeInternal.

Attachment #9065371 - Attachment is obsolete: true
Attachment #9065370 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #9079948 - Attachment description: Bug 1551810 - Part 4: return bool in TraceEdgeInternal. → Bug 1551810 - Part 3: return bool in TraceEdgeInternal.
Attachment #9079949 - Attachment is obsolete: true
Attachment #9079947 - Attachment is obsolete: true
Pushed by allstars.chh@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/4af4586cebba
Part 1: return bool in CallbackTracer methods. r=jonco
Pushed by allstars.chh@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/a4233c3962e9
Part 2: return bool in DoCallback. r=jonco
Pushed by allstars.chh@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/d6bb5fb30ff5
Part 3: return bool in TraceEdgeInternal. r=jonco
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: