hydra-eval-jobs: Warn and resets maxHeapSize on bad values

[?]
Dec 22, 2018, 3:57 AM
YRXR3WDPUCCRY26ABDYTNNYTOQYYAPLW7MB4TSM3EYPXGQT7MQPQC

Dependencies

  • [2] L4GM4MA6 Call initGC()
  • [*] 4N5APGRG * Start of a helper tool to evaluate job expressions efficiently.
  • [*] SM5M2J3A Pass inputs to release expressions using -I

Change contents

  • edit in src/hydra-eval-jobs/hydra-eval-jobs.cc at line 236
    [2.18]
    [5.27]
    /* Read the current heap size, which is the initial heap size. */
    GC_prof_stats_s gc;
    GC_get_prof_stats(&gc, sizeof(gc));
    auto initialHeapSizeInt = gc.heapsize_full;
    /* Then make sure the maximum heap size will be bigger than the initial heap size. */
    if (initialHeapSizeInt > maxHeapSize) {
    printInfo("warning: evaluator_initial_heap_size (%d) bigger than evaluator_max_heap_size (%d).", initialHeapSizeInt, maxHeapSize);
    maxHeapSize = initialHeapSizeInt * 1.1;
    printInfo(" evaluator_max_heap_size now set to %d.", maxHeapSize);
    }