]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fixed memory leaks of SCL module listening systems 74/274/2
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Wed, 18 Jan 2017 15:55:14 +0000 (17:55 +0200)
committerHannu Niemistö <hannu.niemisto@semantum.fi>
Wed, 18 Jan 2017 15:55:54 +0000 (17:55 +0200)
The main addition in this change are backlinks from UpdateListeners to
Observables. They make it possible to implement
UpdateListener.stopListening that removes the listener from all
Observables. This method is called automatically before the listener is
notified about the change, but client code can also call it when it
becames disinterested about changes.

Because now the client code is reposible for signaling when the
listening stops, the listeners are no more store to WeakHashMap in
ModuleEntry.

This change also contains a change in the default imports of some graph
based modules (Prelude -> StandardLibrary).

refs #6943

Change-Id: I7cf8d12b610ab22a70300d9491b645fa34dce620


No differences found