CodeLocator icon indicating copy to clipboard operation
CodeLocator copied to clipboard

Lambda in CodeLocatorApplicationInitializedListener retains released EditorImpl

Open viuginick1 opened this issue 2 years ago • 1 comments

And in the subttree of the released editors there are references to disposed instances of PsiAwareTextEditorComponent, CaretModelImpl. Could you please take a look.

editor field:

     239MB/1 objects          | | | arg$1: com.intellij.openapi.editor.impl.EditorImpl
     238MB/1 objects          | | | myDocument: com.intellij.openapi.editor.impl.DocumentImpl
     238MB/1 objects          | | | myDocumentListeners: com.intellij.openapi.editor.impl.LockFreeCOWSortedArray
     238MB/1 objects          | | | value: [Lcom.intellij.openapi.editor.event.DocumentListener;
    68.5MB/4 objects          | | | []: com.bytedance.tools.codelocator.listener.CodeLocatorApplicationInitializedListener$5$1
    68.5MB/4 objects          | | | val$editor: com.intellij.openapi.editor.impl.EditorImpl
    66.5MB/4 objects          | | | myPanel: javax.swing.JPanel
    66.5MB/4 objects          | | | parent: com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorComponent(disposed)

editorPathMap field:

   65.0MB/1 objects          +-this$1: com.bytedance.tools.codelocator.listener.CodeLocatorApplicationInitializedListener$5
    65.0MB/1 objects          | editorPathMap: java.util.HashMap
    65.0MB/1 objects          | table: [Ljava.util.HashMap$Node;
   55.4MB/43 objects          | []: java.util.HashMap$Node
   34.9MB/38 objects          | +-key: com.intellij.openapi.editor.impl.EditorImpl
    22.0MB/5 objects          | | myCaretModel: com.intellij.openapi.editor.impl.CaretModelImpl(disposed)

viuginick1 avatar Nov 27 '23 05:11 viuginick1

     781MB/1 objects          (root): java.lang.Class(org.jetbrains.kotlin.idea.debugger.coroutine.proxy.CoroutineScopeExtractor)
     770MB/1 objects          +-(static): com.intellij.debugger.engine.DebugProcessEvents
     769MB/1 objects          | myXDebugProcess: com.intellij.debugger.engine.JavaDebugProcess
     662MB/1 objects          | +-mySession: com.intellij.xdebugger.impl.XDebugSessionImpl
     662MB/1 objects          | | myDebuggerManager: com.intellij.xdebugger.impl.XDebuggerManagerImpl
     662MB/1 objects          | | myProject: com.intellij.openapi.project.impl.ProjectImpl
     597MB/1 objects          | | +-serviceInstanceHotCache: java.util.concurrent.ConcurrentHashMap
     597MB/1 objects          | | | table: [Ljava.util.concurrent.ConcurrentHashMap$Node;
    493MB/35 objects          | | | []: java.util.concurrent.ConcurrentHashMap$Node
     219MB/1 objects          | | | +-val: com.intellij.ui.EditorNotificationsImpl
     219MB/1 objects          | | | | fileEditorToMap: com.intellij.util.containers.ConcurrentWeakHashMap
     219MB/1 objects          | | | | myMap: java.util.concurrent.ConcurrentHashMap
     219MB/1 objects          | | | | table: [Ljava.util.concurrent.ConcurrentHashMap$Node;
    218MB/16 objects          | | | | []: java.util.concurrent.ConcurrentHashMap$Node
    210MB/16 objects          | | | | val: java.util.WeakHashMap
    210MB/16 objects          | | | | table: [Ljava.util.WeakHashMap$Entry;
    210MB/16 objects          | | | | []: java.util.WeakHashMap$Entry
     194MB/1 objects          | | | | +-value: com.intellij.debugger.ui.AlternativeSourceNotificationProvider$AlternativeSourceNotificationPanel
     194MB/1 objects          | | | | | mySchemeSupplier: com.intellij.ui.EditorNotificationPanel$$Lambda$4199/0x00000008020db498
     194MB/1 objects          | | | | | arg$1: com.intellij.openapi.editor.impl.EditorImpl
     193MB/1 objects          | | | | | myDocument: com.intellij.openapi.editor.impl.DocumentImpl
     193MB/1 objects          | | | | | myDocumentListeners: com.intellij.openapi.editor.impl.LockFreeCOWSortedArray
     193MB/1 objects          | | | | | value: [Lcom.intellij.openapi.editor.event.DocumentListener;
     185MB/8 objects          | | | | | []: com.bytedance.tools.codelocator.listener.CodeLocatorApplicationInitializedListener$5$1
     185MB/8 objects          | | | | | val$editor: com.intellij.openapi.editor.impl.EditorImpl
     139MB/1 objects          | | | | | +-myProject: com.intellij.openapi.project.impl.ProjectImpl(disposed)

viuginick1 avatar Nov 27 '23 05:11 viuginick1