Reviewing merge request #163: JS rework for cleaner destruction of js bound objects

- Let the GC handle the lifetime of context based objects, destroy them though if they're not freed by JS
- Don't rely on keepContext anymore, use ScriptContext::hasAttachedObjects
- Fixed a lingering problem in the destruction of property-listeners (oops)

Commits that would be merged:

Version 2
  • Version 1
  • Version 2
  • cbe7ae4
  • Patrick Stählin
over 1 year ago
  • b9cba63
  • Patrick Stählin
over 1 year ago
  • 563a6db
  • Patrick Stählin
over 1 year ago
  • 2536059
  • Patrick Stählin
over 1 year ago
  • 7ac13ee
  • Patrick Stählin
over 1 year ago
  • f879521
  • Patrick Stählin
over 1 year ago
  • d462679
  • Patrick Stählin
over 1 year ago
  • c782bba
  • Patrick Stählin
over 1 year ago
  • 57bf9d7
  • Patrick Stählin
over 1 year ago
Showing 1c56058-cbe7ae4

Comments

+     void blockingCallback() {

as discussed with patrick, rename these to startBlockingCall() and endBlockingCall()

Tests do not succeed:

unknown location(0): fatal error in “testSendFrameWorksWithIncomingFrame”: memory access violation at address: 0x00000099: no mapping at fault address
/home/jin/Work/Projects/digitalSTROM/DSS/merge/dss-mainline/tests/jsds485tests.cpp(112): last checkpoint

*** 1 failure detected in test suite “Master Test Suite”

Running for the second time asserts:

[2010-08-31 15:11:33][Debug] [EventInterpreter] Logchannel destroyed
dsstests: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T* boost::shared_ptr< <template-parameter-1-1> >::operator->() const [with T = dss::PropertyNode]: Assertion `px != 0' failed.
unknown location(0): fatal error in “testEventHandlerJavascriptDoesntLeakExceptionsWithNonexistingFile”: signal: SIGABRT (application abort requested)
/home/jin/Work/Projects/digitalSTROM/DSS/merge/dss-mainline/tests/eventtests.cpp(264): last checkpoint
[2010-08-31 15:11:33][Debug] [EventInterpreter] Logchannel created

Something seems to be not right here…

→ State changed from Open to Closed

Merged with changes.

Fixed the assert, renamed functions as discussed.

Add a new comment:

Login or create an account to post a comment

How to apply this merge request to your repository