< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java

Print this page

        

*** 177,187 **** Log.debug("Heuristics say that for "+numCompiles+" concurrent compiles we need "+usage+"MiB"); if (usage > numMBytes) { // Ouch it does not fit. Reduce to a single chunk. numCompiles = 1; sourcesPerCompile = numSources; ! // What if the relationship betweem number of compile_chunks and num_required_mbytes // is not linear? Then perhaps 2 chunks would fit where 3 does not. Well, this is // something to experiment upon in the future. Log.debug("Limiting compile to a single thread to stay within heap size limitations!"); } } --- 177,187 ---- Log.debug("Heuristics say that for "+numCompiles+" concurrent compiles we need "+usage+"MiB"); if (usage > numMBytes) { // Ouch it does not fit. Reduce to a single chunk. numCompiles = 1; sourcesPerCompile = numSources; ! // What if the relationship between number of compile_chunks and num_required_mbytes // is not linear? Then perhaps 2 chunks would fit where 3 does not. Well, this is // something to experiment upon in the future. Log.debug("Limiting compile to a single thread to stay within heap size limitations!"); } }
< prev index next >