Skip to content

Commit d6334ad

Browse files
Merge pull request #22805 from amicic/cs_tax_headroom
Cmdline options for CS taxation headroom
2 parents 22421bd + f49f749 commit d6334ad

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)