Exemple #1
0
int initVM(InitArgs *args) {
    int status;

    /* Perform platform dependent initialisation */
    initialisePlatform();

    /* Initialise the VM modules -- ordering is important! */
    
    status = initialiseHooks(args) &&
	     initialiseVmep(args) &&
             initialiseProperties(args) &&
             initialiseAlloc(args) &&
             initialiseThreadStage1(args) &&
             initialiseUtf8() &&
             initialiseSymbol() &&
             initialiseClass(args) &&
             initialiseDll(args) &&
             initialiseMonitor() &&
             initialiseString() &&
             initialiseException() &&
             initialiseNatives() &&
             initialiseAccess() &&
             initialiseFrame() &&
             initialiseJNI() &&
             initialiseInterpreter(args) &&
             initialiseThreadStage2(args) &&
             initialiseGC(args); 

    VM_initing = FALSE;
    return status;
}
Exemple #2
0
int initVM(InitArgs *args) {
    int status;

    /* Perform platform dependent initialisation */
    initialisePlatform();

    /* Initialise the VM modules -- ordering is important! */

    status = initialiseHooks(args) &&
             initialiseProperties(args) &&
             initialiseAlloc(args) &&
             initialiseThreadStage1(args) &&
             initialiseUtf8(args) &&
             initialiseSymbol() &&
             initialiseClassStage1(args) &&
             initialiseDll(args) &&
             initialiseMonitor() &&
             initialiseString(args) &&
             initialiseException() &&
             initialiseNatives() &&
             initialiseAccess() &&
             initialiseFrame() &&
             initialiseJNI(args->persistence) &&
             initialiseInterpreter(args) &&
             initialiseClassStage2() &&
             initialiseThreadStage2(args) &&
             initialiseGC(args)  &&
             reinitialiseNativeMethods();

    //if(status && args->persistence && is_abnormal_term()) recoverySystems();
    //if(status && args->persistence) recoveryObject();
    VM_initing = FALSE;
    return status;
}