Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332915

Summary: [tracepoint] Refreshing the Trace Control view blocks the UI thread
Product: [Tools] CDT Reporter: Marc Khouzam <marc.khouzam>
Component: cdt-debug-dsf-gdbAssignee: Marc Khouzam <marc.khouzam>
Status: RESOLVED FIXED QA Contact: Marc Khouzam <marc.khouzam>
Severity: normal    
Priority: P3 CC: cdtdoug, marc.dumais, pawel.1.piech
Version: 7.0   
Target Milestone: 7.0.2   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Fix marc.khouzam: iplog-

Description Marc Khouzam CLA 2010-12-19 21:13:53 EST
Created attachment 185510 [details]
Fix

We've noticed that when heavily using the tracepoint interface, deadlocks can happen due to the UI thread being blocked.  Once case is that the refresh operation of the Trace Control view is done within a Query, which locks the UI thread.

This patch does it differently and keeps the UI thread available.
Comment 1 Marc Khouzam CLA 2010-12-19 21:21:15 EST
Committed to HEAD and 7_0
Comment 2 CDT Genie CLA 2010-12-19 21:23:04 EST
*** cdt cvs genie on behalf of mkhouzam ***
Bug 332915: [tracepoint] Refreshing the Trace Control view blocks the UI thread

[*] TraceControlView.java 1.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/tracepoints/TraceControlView.java?root=Tools_Project&r1=1.3&r2=1.4
Comment 3 CDT Genie CLA 2010-12-19 22:23:01 EST
*** cdt cvs genie on behalf of mkhouzam ***
Bug 332915: [tracepoint] Refreshing the Trace Control view blocks the UI thread

[*] TraceControlView.java 1.3.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/tracepoints/TraceControlView.java?root=Tools_Project&r1=1.3&r2=1.3.2.1