outclassdefs.print("int numprefetchsites = " + pa.prefetchsiteid + ";\n");
if(this.state.MLP || state.OOOJAVA ){
outclassdefs.print("extern __thread int oid;\n");
- outclassdefs.print("extern int numWorkers;\n");
+ outclassdefs.print("extern int numWorkSchedWorkers;\n");
}
Iterator it=state.getClassSymbolTable().getDescriptorsIterator();
if( (state.MLP && fsen.equals( mlpa.getMainSESE() )) ||
(state.OOOJAVA && fsen.equals( oooa.getMainSESE() ))
) {
- outmethod.println( " /* work scheduler works forever, explicitly exit */");
- outmethod.println( " CP_EXIT();");
- outmethod.println( " CP_DUMP();");
outmethod.println( " workScheduleExit();");
- outmethod.println( " exit( 0 );");
}
outmethod.println( " break;");
} else if ((GENERATEPRECISEGC) || (this.state.MULTICOREGC)) {
if(this.state.MLP || state.OOOJAVA){
output.println(generateTemp(fm,fn.getDst(),lb)+"=allocate_newarray_mlp("+localsprefixaddr+", "+arrayid+", "+generateTemp(fm, fn.getSize(),lb)+", oid, "+oooa.getDisjointAnalysis().getAllocationSiteFromFlatNew(fn).getUniqueAllocSiteID()+");");
- output.println(" oid += numWorkers;");
+ output.println(" oid += numWorkSchedWorkers;");
}else{
output.println(generateTemp(fm,fn.getDst(),lb)+"=allocate_newarray("+localsprefixaddr+", "+arrayid+", "+generateTemp(fm, fn.getSize(),lb)+");");
}
} else if ((GENERATEPRECISEGC) || (this.state.MULTICOREGC)) {
if (this.state.MLP || state.OOOJAVA){
output.println(generateTemp(fm,fn.getDst(),lb)+"=allocate_new_mlp("+localsprefixaddr+", "+fn.getType().getClassDesc().getId()+", oid, "+oooa.getDisjointAnalysis().getAllocationSiteFromFlatNew(fn).getUniqueAllocSiteID()+");");
- output.println(" oid += numWorkers;");
+ output.println(" oid += numWorkSchedWorkers;");
} else {
output.println(generateTemp(fm,fn.getDst(),lb)+"=allocate_new("+localsprefixaddr+", "+fn.getType().getClassDesc().getId()+");");
}