Remove UnderlyingSinkBase lock notifications
In order to prevent a fetch's body from being garbage collected while it was being read, BodyStreamBuffer's HasPendingActivity() method was made to return true when the ReadableStream was locked. With unified GC, this is no longer necessary, and is a source of bugs. Remove the functionality from UnderlyingSourceBase to track when the ReadableStream wrapping it is locked. Also clear the |controller_| member in ReadableStreamDefaultControllerNative::Close() and Error(). This is no longer functionally important but can aid earlier garbage collection. BUG=902633 Change-Id: If6150e26697f68f984fd05484169709bc165663e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1662255Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/master@{#670026}
Showing
Please register or sign in to comment