374 |
} |
} |
375 |
|
|
376 |
/* Initialize the engine and set the maximum heap size */ |
/* Initialize the engine and set the maximum heap size */ |
377 |
|
#ifdef IL_CONFIG_APPDOMAINS |
378 |
|
if (ILExecInit(heapSize, stackSize) != IL_EXEC_INIT_OK) |
379 |
|
#else |
380 |
if (ILExecInit(heapSize) != IL_EXEC_INIT_OK) |
if (ILExecInit(heapSize) != IL_EXEC_INIT_OK) |
381 |
|
#endif |
382 |
{ |
{ |
383 |
#ifndef REDUCED_STDIO |
#ifndef REDUCED_STDIO |
384 |
fprintf(stderr, "%s: could not initialize engine\n", progname); |
fprintf(stderr, "%s: could not initialize engine\n", progname); |
388 |
} |
} |
389 |
|
|
390 |
/* Create a process to load the program into */ |
/* Create a process to load the program into */ |
391 |
|
#ifdef IL_CONFIG_APPDOMAINS |
392 |
|
process = ILExecProcessCreate(methodCachePageSize); |
393 |
|
#else |
394 |
process = ILExecProcessCreate(stackSize, methodCachePageSize); |
process = ILExecProcessCreate(stackSize, methodCachePageSize); |
395 |
|
#endif |
396 |
if(!process) |
if(!process) |
397 |
{ |
{ |
398 |
#ifndef REDUCED_STDIO |
#ifndef REDUCED_STDIO |