Fix infinite loop with invalid arguments.
Closes #317875 (closed). Note: this is the only refactoring I found which preserves performance (measured with the jmh TypeBenchmark benchmark).
Closes #317875 (closed). Note: this is the only refactoring I found which preserves performance (measured with the jmh TypeBenchmark benchmark).