| Summary: | xlc scanner discovery scheduling rule issue | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Chris Recoskie <recoskie> | ||||
| Component: | cdt-build | Assignee: | Chris Recoskie <recoskie> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Andrew Gvozdev <angvoz.dev> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | cdt-build-inbox, jamesblackburn+eclipse | ||||
| Version: | 7.0 | Flags: | jamesblackburn+eclipse:
review+
|
||||
| Target Milestone: | 7.0 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Chris Recoskie
Created attachment 170566 [details]
patch
Attached a proposed patch.
I'm going to try this at home just to make sure of no weird deadlock issues. In the meantime, if you guys would be willing to review it and let me know your thoughts, I'd appreciate it. Yes, this is an issue. When fiddling with the project description stuff I tried to reduce the sched rule scope to the project, but this broke a bunch of indexer tests which assert that the WR rule is held during set. I filed bug 278636 for this. Using the WR rule is ok here. The alternative is to use an ILock if you're just trying to prevent concurrent running of your ScannerConfigUpdateJob. The WR is safer however if you're get()ing and set()ing the projdesc as it looks like you're trying to do. If this is ok performance-wise I'd do this for the moment and optimize it later. No deadlocks that I can find... Committed to HEAD. *** cdt cvs genie on behalf of crecoskie *** Bug 315117 - xlc scanner discovery scheduling rule issue [*] PerFileXLCScannerInfoCollector.java 1.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/xlc/org.eclipse.cdt.make.xlc.core/src/org/eclipse/cdt/make/xlc/core/scannerconfig/PerFileXLCScannerInfoCollector.java?root=Tools_Project&r1=1.3&r2=1.4 [*] MANIFEST.MF 1.6 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/xlc/org.eclipse.cdt.make.xlc.core/META-INF/MANIFEST.MF?root=Tools_Project&r1=1.5&r2=1.6 Acknowledge review flag, committed some time ago. |