Skip to content

[release/6.0-rc2] Fix ArrayPool leak with JsonDocument - #59568

Merged
danmoseley merged 1 commit into
dotnet:release/6.0-rc2from
steveharter:JsonDocumentArrayPool
Sep 24, 2021
Merged

danmoseley merged 1 commit into
dotnet:release/6.0-rc2from
steveharter:JsonDocumentArrayPool

Conversation

@steveharter

@steveharter steveharter commented Sep 24, 2021 •

Copy link
Copy Markdown
Contributor

Fixes an issue introduced in 6.0 that prevents rented data from being returned to the ArrayPool.

Targeted fix of 7.0 #59540

Customer Impact

An ArrayPool leak for certain scenarios of JsonDocument. Since ArrayPool has buckets based on the requested size, the leak is not unbounded since a normal alloc will occur once a given bucket is full. However, that has an negative effect on CPU\GC behavior since normal allocs will occur instead of a pooled alloc.

Testing

There are no tests to verify ArrayPool semantics.

Risk

Low, fixes a single-line typo.

@ghost

ghost commented Sep 24, 2021

Copy link
Copy Markdown

Tagging subscribers to this area: @eiriktsarpalis, @layomia
See info in area-owners.md if you want to be subscribed.

Issue Details

Targeted fix for #59540

Author: steveharter
Assignees: steveharter
Labels:

area-System.Text.Json

Milestone: 6.0.0

@steveharter steveharter changed the title Fix ArrayPool leak with JsonDocument [release/6.0-rc2] Fix ArrayPool leak with JsonDocument Sep 24, 2021
@danmoseley

Copy link
Copy Markdown
Contributor

Could you add template please ?

@steveharter steveharter added the Servicing-consider Issue for next servicing release review label Sep 24, 2021
@steveharter steveharter added the Servicing-approved Approved for servicing release label Sep 24, 2021
@steveharter

Copy link
Copy Markdown
Contributor Author

Servicing Approved via mail

@steveharter steveharter removed the Servicing-consider Issue for next servicing release review label Sep 24, 2021
@danmoseley
danmoseley merged commit 3e77226 into dotnet:release/6.0-rc2 Sep 24, 2021
@steveharter
steveharter deleted the JsonDocumentArrayPool branch September 27, 2021 14:37
@ghost ghost locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Text.Json Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants