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

Bug 351722

Summary: MakeTarget methods should not call projectTargets.saveTargets();
Product: [Tools] CDT Reporter: Sami Wagiaalla <swagiaal>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: enhancement    
Priority: P3 Keywords: api
Version: 7.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Sami Wagiaalla CLA 2011-07-11 11:01:10 EDT
The autotools plugin updates make targets by iterating of all targets and making calls to org.eclipse.cdt.make.internal.core.MakeTarget.set*
through IMakeTarget several of these calls result in a call to projectTargets.saveTargets(); which again iterates over all targets.

This results in an O(n^2) situation casing eclipse to hang. It would be nice if there is an interface to update a MakeTarget without calling save all