for(Iterator it_classes = ctbl.getDescriptorsIterator();it_classes.hasNext();) {
ClassDescriptor t_cd = (ClassDescriptor)it_classes.next();
outmethod.println(" {");
+
if ((GENERATEPRECISEGC) || (this.state.MULTICOREGC)) {
outmethod.println(" struct garbagelist dummy={0,NULL};");
outmethod.println(" global_defs_p->"+t_cd.getSafeSymbol()+"classobj = allocate_new(&dummy, " + typeutil.getClass(TypeUtil.ObjectClass).getId() + ");");
protected void outputMainMethod(PrintWriter outmethod) {
outmethod.println("int main(int argc, const char *argv[]) {");
outmethod.println(" int i;");
+ if (state.THREAD) {
+ outmethod.println("initializethreads();");
+ }
outmethod.println(" global_defs_p=calloc(1, sizeof(struct global_defs_t));");
outmethod.println(" global_defsprim_p=calloc(1, sizeof(struct global_defsprim_t));");
if (GENERATEPRECISEGC) {
additionalCodeAtTopOfMain(outmethod);
- if (state.THREAD) {
- outmethod.println("initializethreads();");
- }
if ((GENERATEPRECISEGC) || (this.state.MULTICOREGC)) {
outmethod.println(" struct ArrayObject * stringarray=allocate_newarray(NULL, STRINGARRAYTYPE, argc-1);");