Project

General

Profile

Bug #186 » dyson-useSingleThread=true.patch

Disable multithreaded compilation - Igor Pashev, 2015-01-12 01:23 AM

View differences:

ecj-3.10.1/src/org.eclipse.jdt.core/org/eclipse/jdt/internal/compiler/batch/Main.java
4106 4106
	this.batchCompiler.remainingIterations = this.maxRepetition-this.currentRepetition/*remaining iterations including this one*/;
4107 4107
	// temporary code to allow the compiler to revert to a single thread
4108 4108
	String setting = System.getProperty("jdt.compiler.useSingleThread"); //$NON-NLS-1$
4109
	this.batchCompiler.useSingleThread = setting != null && setting.equals("true"); //$NON-NLS-1$
4109
	this.batchCompiler.useSingleThread = setting == null || setting.equals("true"); //$NON-NLS-1$
4110 4110

  
4111 4111
	if (this.compilerOptions.complianceLevel >= ClassFileConstants.JDK1_6
4112 4112
			&& this.compilerOptions.processAnnotations) {
    (1-1/1)