Closed itegulov closed 3 years ago
Also, how does the InvalidMutabilityException
appear? Is it some native-multithreading scenario? Could you please add a test for the native platforms that reproduces the issue or describe the case so that I can add the test myself?
@h0tk3y sorry, the last month was very busy for me. I have added a test showing how to reproduce the error in concurrent scenario.
@h0tk3y ping
It seems like the fix doesn't affect the Kotlin/Native benchmarks in any noticeable way. I'm accepting it now and will publish a new release sometime soon. Thanks a lot!
@h0tk3y thanks for merging the PR. How soon can we expect the new version to be released?
Mutating
relativeInput
makes better-parse throwInvalidMutabilityException
on iosX64 (probably on other Kotlin/Native platforms as well). This PR turnsrelativeInput
into a local immutable object.