]> gerrit.simantics Code Review - simantics/platform.git/commit
Fixed IEditorPart reference (memory) leaks from ResourceEditorSupport 48/248/3
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 4 Jan 2017 12:38:06 +0000 (14:38 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 4 Jan 2017 13:14:52 +0000 (15:14 +0200)
commit7a90a6a6acc2fbc1cf2a5238b1c6ce719ce53f6d
tree7d59e5102e1fdd7158ce23d40098be254b16e00b
parent988ec1a7ac7d5e6a354601635f2676935809d93c
Fixed IEditorPart reference (memory) leaks from ResourceEditorSupport

ResourceEditorSupport.validationRequest gave IEditorPart as an argument
to UnaryRequest which caused the reference to remain in the DB client's
caches for very long times. This consumed the JVM heap rather quickly
with editors that require a lot of memory and never explicitly free
(nullify) it.

refs #6936

Change-Id: I46bfd107d57dea0493653afdb378dc089fa508a2
bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/DefaultExplorerSelectionListener.java
bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/GraphExplorerViewBase.java
bundles/org.simantics.ui/src/org/simantics/ui/workbench/ResourceEditorInput2.java
bundles/org.simantics.ui/src/org/simantics/ui/workbench/ResourceEditorSupport.java