Closed Bug 1126865 Opened 9 years ago Closed 9 years ago

Minor refactoring of GCRuntime::incrementalCollectSlice() and sweepPhase()

Categories

(Core :: JavaScript: GC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(2 files)

      No description provided.
Factor out a function to sweep a list of arenas from GCRuntime::sweepPhase().
Attachment #8555932 - Flags: review?(sphink)
Use an enum to indicate whether an incremental collection phase has finished or not, and get rid of 'bool finished' in GCRuntime::incrementalCollectSlice().
Attachment #8555936 - Flags: review?(sphink)
Comment on attachment 8555936 [details] [diff] [review]
bug1126865-refactor-ics

Review of attachment 8555936 [details] [diff] [review]:
-----------------------------------------------------------------

::: js/src/jsgc.cpp
@@ +5291,5 @@
>  
>          endSweepingZoneGroup();
>          getNextZoneGroup();
>          if (!currentZoneGroup)
> +            return Finished;  /* We're finished. */

Please eliminate this comment and all of the /* Yield to the mutator. */ comments now. I liked having them before your change, but they were never consistently applied, and your enum is *way* better.
Attachment #8555936 - Flags: review?(sphink) → review+
Attachment #8555932 - Flags: review?(sphink) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: