Currently there's no way to indicate the actual amount of memory consumed by native script objects (i.e. objects that wrap arbitrary data, such as Qt/C++ objects).
This can make the garbage collector unresponsive (not freeing objects as often as it should), because it doesn't know the real cost of all objects (since it doesn't know about the native data).
It would be nice if QtScript had an API for registering this cost, so that the GC can take it into account.
Created attachment 51723 [details]
This uses JSC API from JSBasePrivate.h, but see the discussion at https://lists.webkit.org/pipermail/squirrelfish-dev/2010-March/000097.html why this is OK.
Look good to me :-)
Comment on attachment 51723 [details]
Clearing flags on attachment: 51723
Committed r56689: <http://trac.webkit.org/changeset/56689>
All reviewed patches have been landed. Closing bug.