Bug 142126 - utilizing multiple CPUs for Java compiler
Summary: utilizing multiple CPUs for Java compiler
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 3.4 M7   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 225646 (view as bug list)
Depends on:
Blocks: 151053
  Show dependency tree
 
Reported: 2006-05-16 20:54 EDT by Sujee Maniyam CLA
Modified: 2008-06-26 14:37 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sujee Maniyam CLA 2006-05-16 20:54:24 EDT
With multi-core CPUs becoming affordable, I think it is about time that eclipse JDT build should took advantage of available CPUs.  Some thing like 'make -j ' flag.  Number of CPUs to be used could be made configurable in Preferences
Comment 1 Benjamin Muskalla CLA 2008-04-03 16:44:49 EDT
I think this is a dup of bug 126121
Comment 2 Frederic Fusier CLA 2008-04-04 04:36:31 EDT
(In reply to comment #1)
> I think this is a dup of bug 126121
> 
Indeed, thanks for pointing this.


*** This bug has been marked as a duplicate of bug 126121 ***
Comment 3 Jerome Lanneluc CLA 2008-04-15 10:27:48 EDT
Reopening as this is not really a dup of bug 126121. Bug 126121 is about parallelizing the whole build process. Here the request is to ensure that the compiler uses multiple CPUs when available.
Comment 4 Jerome Lanneluc CLA 2008-04-15 10:28:42 EDT
Reassigning to Kent that released this support on Friday without associating a bug to his changes.
Comment 5 Jerome Lanneluc CLA 2008-04-15 10:30:04 EDT
*** Bug 225646 has been marked as a duplicate of this bug. ***
Comment 6 Jerome Lanneluc CLA 2008-04-15 10:31:25 EDT
This was released for 3.4M7 on Friday.
Comment 7 Jerome Lanneluc CLA 2008-04-15 10:38:36 EDT
In case this change caused deadlocks or other problems, one can disable it by setting the "jdt.compiler.useSingleThread" property to "true" 

E.g. passing the following as a VM argument when starting Eclipse:
  -Djdt.compiler.useSingleThread=true
Comment 8 David Audel CLA 2008-04-29 10:04:48 EDT
Verified for 3.4M7 using I20080427-2000
Comment 9 Nirav Thaker CLA 2008-06-25 10:20:21 EDT
(In reply to comment #8)
> Verified for 3.4M7 using I20080427-2000
> 

Can anyone point me where these changes were made? I'm interested in taking a look but couldn't find anything on this bug or in release notes.
Comment 10 Kent Johnson CLA 2008-06-26 14:37:57 EDT
Nirav - take a look at the 2 classes;

org.eclipse.jdt.internal.compiler.ReadManager
org.eclipse.jdt.internal.compiler.ProcessTaskManager 

& where they attach to the Compiler.


If you need any more information, just let us know.