Allow bigger json parsing to JsonDocument (#87343)
authorEgor Boyarkin <egrsfn@gmail.com>
Wed, 14 Jun 2023 15:35:53 +0000 (18:35 +0300)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 15:35:53 +0000 (16:35 +0100)
commit361a8e63a3336789c444995b63578a0032d7d874
tree1654c92b638a23a21d69e51d4447bd6cd7600f64
parent8d3d7eaac5e4242ae30c4ad334b558d6cbd1e53a
Allow bigger json parsing to JsonDocument (#87343)

* Allow bigger json parsing to JsonDocument

* Use single constant and assert it on .NET 6

* Force ArrayPool.Rent to throw if it's impossible to enlarge
src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonDocument.MetadataDb.cs