Skip to content

Commit 3edeaa2

Browse files
2011-04-15 Joseph Pecoraro <joepeck@webkit.org>
Reviewed by David Kilzer. JSLock ASSERT seen often when using the inspector for long periods of time. We should take the JSLock whenever we might allocate memory in the JavaScript Heap. JSC InjectedScriptHost::nodeAsScriptValue should take JSLock before possible JavaScript Allocations https://bugs.webkit.org/show_bug.cgi?id=58674 * bindings/js/JSInjectedScriptHostCustom.cpp: (WebCore::InjectedScriptHost::nodeAsScriptValue): take the JSLock. Canonical link: https://commits.webkit.org/73764@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84022 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 6d632bb commit 3edeaa2

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

Source/WebCore/ChangeLog

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
2011-04-15 Joseph Pecoraro <joepeck@webkit.org>
2+
3+
Reviewed by David Kilzer.
4+
5+
JSLock ASSERT seen often when using the inspector for long
6+
periods of time. We should take the JSLock whenever we
7+
might allocate memory in the JavaScript Heap.
8+
9+
JSC InjectedScriptHost::nodeAsScriptValue should take JSLock before possible JavaScript Allocations
10+
https://bugs.webkit.org/show_bug.cgi?id=58674
11+
12+
* bindings/js/JSInjectedScriptHostCustom.cpp:
13+
(WebCore::InjectedScriptHost::nodeAsScriptValue): take the JSLock.
14+
115
2011-04-14 Oliver Hunt <oliver@apple.com>
216

317
Reviewed by Geoffrey Garen.

Source/WebCore/bindings/js/JSInjectedScriptHostCustom.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Node* InjectedScriptHost::scriptValueAsNode(ScriptValue value)
7070

7171
ScriptValue InjectedScriptHost::nodeAsScriptValue(ScriptState* state, Node* node)
7272
{
73+
JSLock lock(SilenceAssertionsOnly);
7374
return ScriptValue(state->globalData(), toJS(state, node));
7475
}
7576

0 commit comments

Comments
 (0)