Forgot to commit this to TOT way back when; will be useful when actually porting...
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Oct 2005 04:36:04 +0000 (04:36 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Oct 2005 04:36:04 +0000 (04:36 +0000)
commitd3437d5c1adc4a8cc89db463b82001ca3635a932
treeaaa92b5c32e6e6f14b8f09922e27df6619d12a81
parent4d1af2cf2838f00cd1bf3cb1ae41161ec7cfcbdd
Forgot to commit this to TOT way back when; will be useful when actually porting JSGlue.

        Reviewed by Geoff.

- fixed <rdar://problem/4214783> REGRESSION: kjs_fast_malloc crash due to lack of locking on multiple threads (seen selecting volumes in the installer)

Make sure to lock using the InterpreterLock class in all places that need it
(including anything that uses the collector, the parser, the protect count hash table,
and anything that allocates via fast_malloc).

        * JSUtils.cpp:
        (CFStringToUString):
        (JSObjectKJSValue):
        (KJSValueToCFTypeInternal):
        * JSUtils.h:
        * JSValueWrapper.cpp:
        (JSValueWrapper::JSObjectCopyPropertyNames):
        (JSValueWrapper::JSObjectCopyProperty):
        (JSValueWrapper::JSObjectSetProperty):
        (JSValueWrapper::JSObjectCallFunction):
        (JSValueWrapper::JSObjectCopyCFValue):
        * JavaScriptGlue.cpp:
        (JSCollect):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12202 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptGlue/ChangeLog
JavaScriptGlue/JSUtils.cpp
JavaScriptGlue/JSUtils.h
JavaScriptGlue/JSValueWrapper.cpp
JavaScriptGlue/JavaScriptGlue.cpp