Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
19bc7865
Commit
19bc7865
authored
10 years ago
by
Alexey Kudravtsev
Browse files
Options
Download
Email Patches
Plain Diff
show the top leaked object
parent
993380b9
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/util/src/com/intellij/openapi/util/objectTree/ObjectTree.java
+4
-2
.../src/com/intellij/openapi/util/objectTree/ObjectTree.java
with
4 additions
and
2 deletions
+4
-2
platform/util/src/com/intellij/openapi/util/objectTree/ObjectTree.java
+
4
-
2
View file @
19bc7865
...
@@ -199,9 +199,11 @@ public final class ObjectTree<T> {
...
@@ -199,9 +199,11 @@ public final class ObjectTree<T> {
synchronized
(
treeLock
)
{
synchronized
(
treeLock
)
{
for
(
T
object
:
myRootObjects
)
{
for
(
T
object
:
myRootObjects
)
{
if
(
object
==
null
)
continue
;
if
(
object
==
null
)
continue
;
final
ObjectNode
<
T
>
objectNode
=
getNode
(
object
);
ObjectNode
<
T
>
objectNode
=
getNode
(
object
);
if
(
objectNode
==
null
)
continue
;
if
(
objectNode
==
null
)
continue
;
while
(
objectNode
.
getParent
()
!=
null
)
{
objectNode
=
objectNode
.
getParent
();
}
final
Throwable
trace
=
objectNode
.
getTrace
();
final
Throwable
trace
=
objectNode
.
getTrace
();
RuntimeException
exception
=
new
RuntimeException
(
"Memory leak detected: "
+
object
+
" of class "
+
object
.
getClass
()
RuntimeException
exception
=
new
RuntimeException
(
"Memory leak detected: "
+
object
+
" of class "
+
object
.
getClass
()
+
"\nSee the cause for the corresponding Disposer.register() stacktrace:\n"
,
+
"\nSee the cause for the corresponding Disposer.register() stacktrace:\n"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help