[Webkit-unassigned] [Bug 143898] New: Temporarily hide the CompilationScope to allow Options::dumpSourceAtDFGTime() to work.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Apr 17 14:30:29 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=143898
Bug ID: 143898
Summary: Temporarily hide the CompilationScope to allow
Options::dumpSourceAtDFGTime() to work.
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mark.lam at apple.com
CodeBlock::dumpSource() will access SourceCode strings in a way that requires ref'ing of the underlying StringImpls. This is unsafe to do from arbitrary compilation threads because StringImpls are not thread safe. There is an assertion in StringImpl code that checks for this.
However, Options::dumpSourceAtDFGTime() is only used for DFG debugging. For its purpose, we can live with the race condition introduced in the ref'ing of the SourceCode strings. Hence, we introduce an UnsafeHideCompilationScope here to temporarily and locally suppress the StringImpl assertion in order for Options::dumpSourceAtDFGTime() to also work on debug builds.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150417/7843e269/attachment.html>
More information about the webkit-unassigned
mailing list