maxSubjectLength

The longest string a pattern will be matched against.

A stack-depth bound rather than a length one. A backtracking engine recurses roughly once per character of a quantified group, and Kotlin/Native aborts the process on overflow instead of raising.