Beispiel #1
0
void setDefaultInitArgs(InitArgs *args) {
    /* Long longs are used here because with PAE, a 32-bit
       machine can have more than 4GB of physical memory */
    long long phys_mem = nativePhysicalMemory();

    args->asyncgc = FALSE;

    args->verbosegc    = FALSE;
    args->testmode     = FALSE;
    args->persistence  = FALSE;
    args->verbosedll   = FALSE;
    args->verboseclass = FALSE;
    args->valgrind     = FALSE;

    args->trace_jni_sigs = FALSE;
    args->compact_specified = FALSE;

    args->classpath  = NULL;
    args->dirname    = NULL;
    args->bootpath   = NULL;
    args->bootpath_p = NULL;
    args->bootpath_a = NULL;
    args->bootpath_c = NULL;
    args->bootpath_v = NULL;

    args->java_stack = DEFAULT_STACK;
    args->max_heap   = phys_mem == 0 ? DEFAULT_MAX_HEAP
                                     : clampHeapLimit(phys_mem/4);
    args->min_heap   = phys_mem == 0 ? DEFAULT_MIN_HEAP
                                     : clampHeapLimit(phys_mem/64);

    args->props_count = 0;

    args->vfprintf = vfprintf;
    args->abort    = abort;
    args->exit     = exit;

#ifdef INLINING
    args->replication_threshold = 10;
    args->profile_threshold     = 10;
    args->branch_patching_dup   = TRUE;
    args->branch_patching       = TRUE;
    args->print_codestats       = FALSE;
    args->join_blocks           = TRUE;
    args->profiling             = TRUE;
    args->codemem               = args->max_heap/4;
#endif

#ifdef HAVE_PROFILE_STUBS
    args->dump_stubs_profiles   = FALSE;
#endif
}
Beispiel #2
0
void setDefaultInitArgs(InitArgs *args) {
    long long phys_mem = getPhysicalMemory();

    args->asyncgc = FALSE;

    args->verbosegc    = FALSE;
    args->verbosedll   = FALSE;
    args->verboseclass = FALSE;

    args->trace_jni_sigs = FALSE;
    args->compact_specified = FALSE;

    args->classpath = NULL;
    args->bootpath  = NULL;
    args->bootpath_p = NULL;
    args->bootpath_a = NULL;
    args->bootpath_c = NULL;
    args->bootpath_v = NULL;

    args->java_stack = DEFAULT_STACK;
    args->max_heap   = clampHeapLimit(phys_mem/4);
    args->min_heap   = clampHeapLimit(phys_mem/64);

    args->props_count = 0;

    args->vfprintf = vfprintf;
    args->abort    = abort;
    args->exit     = exit;

#ifdef INLINING
    args->replication_threshold = 10;
    args->profile_threshold     = 10;
    args->branch_patching_dup   = TRUE;
    args->branch_patching       = TRUE;
    args->print_codestats       = FALSE;
    args->join_blocks           = TRUE;
    args->profiling             = TRUE;
    args->codemem               = args->max_heap/4;
#endif

#ifdef HAVE_PROFILE_STUBS
    args->dump_stubs_profiles   = FALSE;
#endif
}