Skip to content

Commit 8014cdd

Browse files
Aleksandar MicicAleksandar Micic
authored andcommitted
Cmdline options for CS taxation headroom
Private command line options to tune taxation headroom Valid values to provide are any positive integer, but the map to floats by subtracting 100 (possibly leading to negative values) and dividing by 100. The current internal defaults are -0.1 to +0.2, what would map into 90 and 120 for the command line option values.
1 parent 5362da6 commit 8014cdd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

runtime/gc_modron_startup/mmparseXXgc.cpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,30 @@ gcParseXXgcArguments(J9JavaVM *vm, char *optArg)
10251025
continue;
10261026
}
10271027

1028+
if (try_scan(&scan_start, "concurrentScavengeTaxationHeadroomLow=")) {
1029+
UDATA value = 0;
1030+
if (!scan_udata_helper(vm, &scan_start, &value, "concurrentScavengeTaxationHeadroomLow=")) {
1031+
returnValue = JNI_EINVAL;
1032+
break;
1033+
}
1034+
1035+
extensions->concurrentScavengeTaxationHeadroomLow = ((float)value - 100.0f) / 100.0f;
1036+
continue;
1037+
}
1038+
1039+
if (try_scan(&scan_start, "concurrentScavengeTaxationHeadroomHigh=")) {
1040+
UDATA value = 0;
1041+
if (!scan_udata_helper(vm, &scan_start, &value, "concurrentScavengeTaxationHeadroomHigh=")) {
1042+
returnValue = JNI_EINVAL;
1043+
break;
1044+
}
1045+
1046+
extensions->concurrentScavengeTaxationHeadroomHigh = ((float)value - 100.0f) / 100.0f;
1047+
continue;
1048+
}
1049+
1050+
1051+
10281052
#endif /* defined(OMR_GC_CONCURRENT_SCAVENGER) */
10291053

10301054
#endif /* defined(J9VM_GC_MODRON_SCAVENGER) */

0 commit comments

Comments
 (0)