Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324328 - Disable thread profiling deadlock detection for 4.7.1
Summary: Disable thread profiling deadlock detection for 4.7.1
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Jonathan West CLA
QA Contact: Kathy Chan CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-02 12:26 EDT by Jonathan West CLA
Modified: 2016-05-05 11:01 EDT (History)
4 users (show)

See Also:
jgwest: pmc_approved? (kathy)
ernest: pmc_approved+
jgwest: pmc_approved? (jerome.bozier)
jgwest: pmc_approved? (oec)
mikereid: review+


Attachments
Patch to XMLmonContendedEnterLoader (7.09 KB, patch)
2010-09-07 20:04 EDT, Jonathan West CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan West CLA 2010-09-02 12:26:37 EDT
As per bug 295671, the existing workbench deadlock detection will easily show false positives on fairly simple applications. Deadlocks themselves are fairly serious, as they imply that the involved threads will not come unblocked (without intervention.

This bug has been opened to contribute a workaround which disables deadlock detection for 4.7.1.  False-positives are worse than false-negatives, as in this case, false positives may cause users to spend a great deal of time on a wild goose chase looking a deadlock that likely doesn't actually exist.
Comment 1 Jonathan West CLA 2010-09-07 20:04:35 EDT
Created attachment 178369 [details]
Patch to XMLmonContendedEnterLoader
Comment 2 Jonathan West CLA 2010-09-07 20:05:24 EDT
Mike, can you review? Thanks!
Comment 3 Mike Reid CLA 2010-09-08 09:27:17 EDT
Looks good. The patch introduces a bit of over-indented code down at the bottom of updateDeadlockBy
Comment 4 Mike Reid CLA 2010-09-08 09:28:36 EDT
Accidentally hit enter, my full comment was to be:

Looks good. The patch introduces a bit of over-indented code down at the bottom
of updateDeadLockByContagion() that you may want to fix up. Otherwise all is well.
Comment 5 Jonathan West CLA 2010-09-08 09:59:54 EDT
Thanks Mike! The entire file has weird indentation, which will all be tossed out when bug 295671 is fixed.
Comment 6 Jonathan West CLA 2010-09-08 10:32:26 EDT
I would like to ask for PMC approval to include the fix of this bug in TPTP v4.7.1.

   1.   Explain why you believe this is a stop-ship defect. How does the defect
manifest itself, and how will users of TPTP / consuming products be affected if
the defect is not fixed?

As per bug 295671, the existing workbench deadlock detection will easily show
false positives on fairly simple applications. False-positives are worse than 
false-negatives, as in this case, false positives may cause users to spend a 
great deal of time on a wild goose chase looking a deadlock that likely 
doesn't actually exist.

   2. Is there a work-around? If so, why do you believe the work-around is
insufficient?
No.

   3. Is this a regression or API breakage? Explain.
Not a regression.

   4. Does this require new API?
No.

   5. Who performed the code review?
Mike Reid

   6. Is there a test case attached to the Bugzilla record?
No.

   7. What is the nature of the fix? What is the scope of the fix? What is the risk associated with this fix?
Fix is a workaround that disables the creation of dead lock events, while maintaining the existing logic for non-deadlock related code.

   8. Is this fix related to any standards that TPTP adheres to? If so, who has
validated that the fix continues to adhere to the standard?
        n/a
Comment 7 Jonathan West CLA 2010-09-08 10:39:11 EDT
Requesting approval for TPTP 4.7.1.
Comment 8 Jonathan West CLA 2010-09-08 13:42:16 EDT
Patch checked into HEAD w/ PMC approval.
Comment 9 Kathy Chan CLA 2011-02-11 13:45:55 EST
This defect had been resolved as FIXED for more than 1 month.  Please verify with the latest TPTP 4.7.2 driver.  If this defect is still left unverified by February 25, we'll close it on the originator's behalf.

TPTP 4.7.2 driver can be downloaded from:

http://www.eclipse.org/tptp/home/downloads/?ver=4.7.2
Comment 10 Jonathan West CLA 2011-04-01 14:20:07 EDT
Closing.