Dispose of WorkerScripts in correct Isolate
authorAaron Kennedy <aaron.kennedy@nokia.com>
Tue, 7 Jun 2011 06:34:04 +0000 (16:34 +1000)
committerAaron Kennedy <aaron.kennedy@nokia.com>
Tue, 7 Jun 2011 07:00:11 +0000 (17:00 +1000)
commit53085399f56714db27cbdebe554146528d13c94e
tree3706a9938f7c2c2dbc13d77c07ffdc4c81b4185e
parent1c3dd8f22da09bf9a110715d159374a09c27dc77
Dispose of WorkerScripts in correct Isolate

We were disposing them in the main thread isolate which caused
corruption of the v8 heap.  Specifically this showed in asserting
allocations of persistent handles.
src/declarative/qml/qdeclarativeworkerscript.cpp
tests/auto/declarative/qdeclarativeworkerscript/data/stressDispose.js [new file with mode: 0644]
tests/auto/declarative/qdeclarativeworkerscript/data/stressDispose.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp