int threadnum = 62; // 56;
for(int i = 0; i < threadnum; ++i) {
- TestRunner tr = new TestRunner(){run};
+ TestRunner tr = newflag TestRunner(){run};
}
taskexit(s{!initialstate});
int threadnum = 62; // 56;
for(int i = 0; i < threadnum; ++i) {
- TestRunner gcb = new TestRunner(){run};
+ TestRunner gcb = newflag TestRunner(){run};
}
taskexit(s{!initialstate});
int nruns = 62 * 62; //16 * 16;
int group = 62; // 16;
- AppDemo ad = new AppDemo(datasize, nruns, group){merge};
+ AppDemo ad = newflag AppDemo(datasize, nruns, group){merge};
ad.initSerial();
for(int i = 0; i < group; i++) {
- AppDemoRunner adr = new AppDemoRunner(i,
- nruns,
- group,
- ad){run};
+ AppDemoRunner adr = newflag AppDemoRunner(i,
+ nruns,
+ group,
+ ad){run};
}
taskexit(s{!initialstate});
int size = 40000;
int nodenum = size*10;
for(int i = 0; i < threadnum; ++i) {
- TestRunner tr = new TestRunner(i, size, nodenum){run};
+ TestRunner tr = newflag TestRunner(i, size, nodenum){run};
}
taskexit(s{!initialstate});
int threadnum = 62; // 56;
int size = threadnum * 25;
- Composer comp = new Composer(threadnum, size){compose};
+ Composer comp = newflag Composer(threadnum, size){compose};
RayTracer rt = new RayTracer();
Scene scene = rt.createScene();
for(int i = 0; i < threadnum; ++i) {
- TestRunner tr = new TestRunner(i, threadnum, size, scene){run};
+ TestRunner tr = newflag TestRunner(i, threadnum, size, scene){run};
}
taskexit(s{!initialstate});
int threadnum = 62; // 56;
int nbody = 700; //4096; //30000;
for(int i = 0; i < threadnum; ++i) {
- TestRunner tr = new TestRunner(nbody){run};
+ TestRunner tr = newflag TestRunner(nbody){run};
}
taskexit(s{!initialstate});
args[4] = 81; //51; // 501;
args[5] = 240; //0; // 1500;
for(int i = 0; i < threadnum; ++i) {
- TestRunner tr = new TestRunner(args){run};
+ TestRunner tr = newflag TestRunner(args){run};
}
taskexit(s{!initialstate});
int threadnum = 62; // 56;
int ncities = 4080;
for(int i = 0; i < threadnum; ++i) {
- TestRunner tr = new TestRunner(ncities){run};
+ TestRunner tr = newflag TestRunner(ncities){run};
}
taskexit(s{!initialstate});
int threadnum = 62; // 56;
int npoints = 32000; //30000;
for(int i = 0; i < threadnum; ++i) {
- TestRunner tr = new TestRunner(npoints){run};
+ TestRunner tr = newflag TestRunner(npoints){run};
}
taskexit(s{!initialstate});
public class Object {
/* DO NOT USE ANY OF THESE - THEY ARE FOR IMPLEMENTING TAGS */
- private int cachedCode; //first field has to be a primitive
private Object tags;
public native int hashCode();
}
public Socket accept(tag td) {
- Socket s=new Socket() {
+ Socket s=newflag Socket() {
} {td};
int newfd=nativeaccept(s);
s.setFD(newfd);
#endif
#ifndef MAC
+#ifdef THREADS
__thread struct lockvector lvector;
__thread int mythreadid;
+#endif
#else
#endif
#endif
#endif
+#ifdef THREADS
#define MAXLOCKS 256
struct lockpair {
extern __thread struct lockvector lvector;
extern __thread int mythreadid;
#endif
+#endif
#ifdef TASK
#ifndef MULTICORE