Add protection against "wrong" marking in debug builds
authorSimon Hausmann <simon.hausmann@theqtcompany.com>
Fri, 8 May 2015 10:34:53 +0000 (12:34 +0200)
committerSimon Hausmann <simon.hausmann@theqtcompany.com>
Fri, 8 May 2015 14:55:32 +0000 (14:55 +0000)
commita690648c215128d6e0ffe709be08a334f39554e0
tree530d6ba5095cc4f82f8b1d4e3e379dcb48bead10
parent889f717fc57ea9881ca250b8230742633c1ed5a2
Add protection against "wrong" marking in debug builds

To protect against situations where we accidentally mark an object that belongs
to a different engine - there are many possible entry points - this patch adds
an assertion in debug builds for this situation. When it happens, it will point
more or less directly to the code that tries to push an object to the wrong JS
stack for marking. This helped in the investigation of QTBUG-44895

Change-Id: I311b9ff6d282d52e725044b03a62cd77085536be
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/jsruntime/qv4engine.cpp
src/qml/jsruntime/qv4engine_p.h