Closed Bug 891436 Opened 11 years ago Closed 11 years ago

GC: Skip heap walk for profilingScripts during minor GC

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: terrence, Unassigned)

References

Details

Attachments

(1 file)

Attached patch v0Splinter Review
This is making TBPL orange at the moment. The problem is that, as we discovered in bug 889682, walking the heap inside of a minor GC is dangerous.  I'm very surprised that we did not hit this earlier.
Attachment #772727 - Flags: review?(wmccloskey)
Comment on attachment 772727 [details] [diff] [review]
v0

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

::: js/src/gc/RootMarking.cpp
@@ +712,5 @@
>              zone->markTypes(trc);
>          }
>  
>          /* Do not discard scripts with counts while profiling. */
> +        if (!rt->isHeapMinorCollecting() && rt->profilingScripts) {

Could you switch the order of these conditions? The first one is more relevant.
Attachment #772727 - Flags: review?(wmccloskey) → review+
https://hg.mozilla.org/mozilla-central/rev/a65599fc1dd4
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: