WebKit provides APIs that make it possible for JSC to attempt to initialise the heap...
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jul 2012 20:43:40 +0000 (20:43 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jul 2012 20:43:40 +0000 (20:43 +0000)
commit8675923bfa3f6e52f9e126c2f34168d7f0806463
tree6a5cfaa1bd0608a2effe2ecc73320e2baa757128
parent688fc910193ba308110d8a4177808e39261297c9
WebKit provides APIs that make it possible for JSC to attempt to initialise the heap without initialising threading
https://bugs.webkit.org/show_bug.cgi?id=91663

Reviewed by Filip Pizlo.

Initialising a JSGlobalData now requires us to have initialised JSC's threading
logic, as that also initialises the JSC VM runtime options.  WebKit provides a
number of routines that make use of commonJSGlobalData() that can be used before
webcore has called the appropriate initialisation routine.  This patch makes the
minimal change of ensuring that commonJSGlobalData initialises threading before
attempting to create the common heap.

* bindings/js/JSDOMWindowBase.cpp:
(WebCore::JSDOMWindowBase::commonJSGlobalData):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@123013 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/bindings/js/JSDOMWindowBase.cpp