Closed Bug 902210 Opened 11 years ago Closed 11 years ago

Suppress the indirect call static analysis hazard in GetWeakmapKeyDelegate

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: terrence, Assigned: terrence)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch ur_GetWeakmapKeyDelegate-v0.diff (obsolete) — Splinter Review
This indirect call cannot trigger GC, so we should just suppress it. I think the attached should work.
Attachment #786573 - Flags: review?(sphink)
Forgot to qref before uploading.
Attachment #786573 - Attachment is obsolete: true
Attachment #786573 - Flags: review?(sphink)
Attachment #786588 - Flags: review?(sphink)
Comment on attachment 786588 [details] [diff] [review] hazard_getWeakmapKeyDelegate-v1.diff Review of attachment 786588 [details] [diff] [review]: ----------------------------------------------------------------- Doh! Sorry, this one is totally my fault. I removed this line from ignoreFunctions in an unrelated change: "JSObject* js::GetWeakmapKeyDelegate(JSObject*)" : true, // FIXME: mark with AutoAssertNoGC instead because I somehow managed to convince myself that it was no longer necessary. I think yours is probably better than my original. And the right-er long term fix would probably be to declare tracing to be a GC-free zone, rather than sticking an in-code annotation in this particular place. Is there some easy way to do that, do you think?
Attachment #786588 - Flags: review?(sphink) → review+
Maybe we could just put a SuppressGC in Collect?
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: