Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 87637 - Frozen UI when using inline diff
Frozen UI when using inline diff
Product: utilities
Classification: Unclassified
Component: Diff
All All
: P2 (vote)
: 6.x
Assigned To: diff-issues@utilities
Depends on:
  Show dependency treegraph
Reported: 2006-10-20 13:47 UTC by _ rkubacki
Modified: 2006-10-23 16:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT

thread dump (93.37 KB, text/plain)
2006-10-20 13:49 UTC, _ rkubacki

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2006-10-20 13:47:13 UTC
dev build from Oct 19, JDK 6b98

I turned on diff sidebar in view menu and tried to find some tooltip and switch
to another document. I do not know what is actual cause of problem but EDT
thread waits for some lock and RP thread pool is exhausted with 50 requests that
are all waiting wor some document lock that probably will need something from EDT.
Comment 1 _ rkubacki 2006-10-20 13:48:57 UTC
Rather a threading problem than a performance bug. OTOH it might be better to
serialize tasks sent to RP here too.
Comment 2 _ rkubacki 2006-10-20 13:49:54 UTC
Created attachment 35415 [details]
thread dump
Comment 3 Maros Sandor 2006-10-20 14:15:18 UTC
I believe this was caused by unnecessary synchronization in DiffSidebar which
was removed yesterday, please verify in later builds. ( @ 1.7)
Comment 4 Petr Nejedly 2006-10-20 14:27:44 UTC
> OTOH it might be better to serialize tasks sent to RP here too.
Not better, I believe this is absolutely necessary, as this code has the
potential to quickly exhaust the RP pool because of e.g. short network outage.
Reopening as P2.
Feel free to close again if you believe that the code won't really block while
running more requests concurrently.
Comment 5 Maros Sandor 2006-10-20 14:30:22 UTC
Yes, I plan to create my own RP, it just won't deadlock anymore but may fill up
RP eventually if there are many files open.
Comment 6 Maros Sandor 2006-10-20 14:38:41 UTC
Created a dedicated RP for diff sidebars.

new revision: 1.8; previous revision: 1.7
new revision: 1.3; previous revision: 1.2

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo