Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda in CodeLocatorApplicationInitializedListener retains released EditorImpl #43

Open
ViugiNick opened this issue Nov 27, 2023 · 1 comment

Comments

@ViugiNick
Copy link

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)
@ViugiNick
Copy link
Author

     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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant