diff options
author | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-29 23:02:47 +0000 |
---|---|---|
committer | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-29 23:02:47 +0000 |
commit | e323484aa9e8b346a7ac45db155ae878b8362fb6 (patch) | |
tree | 29f03abfca554a5bc2e834f11a799628ef6098d0 /webkit/build | |
parent | ba2e2d1192f8ce307ddad401c4f07043aada02c2 (diff) | |
download | chromium_src-e323484aa9e8b346a7ac45db155ae878b8362fb6.zip chromium_src-e323484aa9e8b346a7ac45db155ae878b8362fb6.tar.gz chromium_src-e323484aa9e8b346a7ac45db155ae878b8362fb6.tar.bz2 |
Reland changes to fix the problem that DOM object is deleted in the GC thread, not owning thread.
This patch contains the fix to the Purify failure: memory leaks of thread specific data for main thread. The fix is to switch to using the static maps for main thread.
Compared with previous patch being reviewed, the main change in this patch is in V8DOMMap.cpp: I introduce NonMainThreadSpecificDOMData and MainThreadSpecificDOMData that are both derived from ThreadSpecificDOMData.
Review URL: http://codereview.chromium.org/49044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12757 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/build')
-rw-r--r-- | webkit/build/V8Bindings/SConscript | 1 | ||||
-rw-r--r-- | webkit/build/V8Bindings/V8Bindings.vcproj | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/webkit/build/V8Bindings/SConscript b/webkit/build/V8Bindings/SConscript index 247e40c..86d3796 100644 --- a/webkit/build/V8Bindings/SConscript +++ b/webkit/build/V8Bindings/SConscript @@ -356,6 +356,7 @@ inputs = [ '$PORT_DIR/bindings/v8/V8NPObject.cpp', '$PORT_DIR/bindings/v8/v8_proxy.cpp', '$PORT_DIR/bindings/v8/V8CanvasPixelArrayCustom.cpp', + '$PORT_DIR/bindings/v8/V8DOMMap.cpp', '$PORT_DIR/bindings/v8/V8MessagePortCustom.cpp', '$PORT_DIR/bindings/v8/V8WorkerContextCustom.cpp', '$PORT_DIR/bindings/v8/V8WorkerCustom.cpp', diff --git a/webkit/build/V8Bindings/V8Bindings.vcproj b/webkit/build/V8Bindings/V8Bindings.vcproj index 0379807..d10fdc0 100644 --- a/webkit/build/V8Bindings/V8Bindings.vcproj +++ b/webkit/build/V8Bindings/V8Bindings.vcproj @@ -2825,6 +2825,10 @@ > </File> <File + RelativePath="..\..\port\bindings\v8\DOMObjectsInclude.h" + > + </File> + <File RelativePath="..\..\port\bindings\v8\JSDOMBinding.cpp" > </File> @@ -2993,6 +2997,14 @@ > </File> <File + RelativePath="..\..\..\third_party\WebKit\WebCore\bindings\v8\V8DOMMap.cpp" + > + </File> + <File + RelativePath="..\..\..\third_party\WebKit\WebCore\bindings\v8\V8DOMMap.h" + > + </File> + <File RelativePath="..\..\..\third_party\WebKit\WebCore\bindings\v8\V8LazyEventListener.cpp" > </File> |