Skip to content

Conversation

@evanlucas
Copy link
Contributor

ReadableState has the resumeScheduled property that helps determine if
a stream should be resumed. It was not assigned in the constructor.
When stream.resume is called on a readable stream that is not flowing,
it is set to true. This changes the property map of the ReadableState
which can cause a deopt in onEofChunk and needMoreData.

@evanlucasevanlucas added the stream Issues and PRs related to the stream subsystem. label Jan 19, 2016
@bnoordhuis
Copy link
Member

LGTM

@cjihrig
Copy link
Contributor

LGTM. Would initializing to false work?

@evanlucas
Copy link
ContributorAuthor

Possibly. I'll look more into it and see if there are any reasons to not use false

@evanlucas
Copy link
ContributorAuthor

From looking through it, I don't see a reason why we can't use false here. Would that be preferred over undefined?

@evanlucas
Copy link
ContributorAuthor

Ok, updated to use false instead of undefined.

CI: https://ci.nodejs.org/job/node-test-pull-request/1304/

@mscdex
Copy link
Contributor

LGTM

ReadableState has the resumeScheduled property that helps determine if a stream should be resumed. It was not assigned in the constructor. When stream.resume is called on a readable stream that is not flowing, it is set to true. This changes the property map of the ReadableState which can cause a deopt in onEofChunk and needMoreData. PR-URL: nodejs#4761 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]>
@evanlucasevanlucas deleted the readabledeopt branch January 19, 2016 19:32
@evanlucas
Copy link
ContributorAuthor

Landed in df4d209. Thanks!

@evanlucasevanlucas merged commit df4d209 into nodejs:masterJan 19, 2016
evanlucas added a commit that referenced this pull request Jan 19, 2016
ReadableState has the resumeScheduled property that helps determine if a stream should be resumed. It was not assigned in the constructor. When stream.resume is called on a readable stream that is not flowing, it is set to true. This changes the property map of the ReadableState which can cause a deopt in onEofChunk and needMoreData. PR-URL: #4761 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]>
evanlucas added a commit that referenced this pull request Jan 20, 2016
ReadableState has the resumeScheduled property that helps determine if a stream should be resumed. It was not assigned in the constructor. When stream.resume is called on a readable stream that is not flowing, it is set to true. This changes the property map of the ReadableState which can cause a deopt in onEofChunk and needMoreData. PR-URL: #4761 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]>
@jasnell
Copy link
Member

Is this appropriate for LTS?

@evanlucas
Copy link
ContributorAuthor

I don't see why not. It just can prevent a de-opt in a stream.

@MylesBorins
Copy link
Contributor

adding LTS watch tag.

@jasnell
Copy link
Member

SGTM

MylesBorins pushed a commit that referenced this pull request Mar 17, 2016
ReadableState has the resumeScheduled property that helps determine if a stream should be resumed. It was not assigned in the constructor. When stream.resume is called on a readable stream that is not flowing, it is set to true. This changes the property map of the ReadableState which can cause a deopt in onEofChunk and needMoreData. PR-URL: #4761 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]>
MylesBorins pushed a commit that referenced this pull request Mar 21, 2016
ReadableState has the resumeScheduled property that helps determine if a stream should be resumed. It was not assigned in the constructor. When stream.resume is called on a readable stream that is not flowing, it is set to true. This changes the property map of the ReadableState which can cause a deopt in onEofChunk and needMoreData. PR-URL: #4761 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]>
scovetta pushed a commit to scovetta/node that referenced this pull request Apr 2, 2016
ReadableState has the resumeScheduled property that helps determine if a stream should be resumed. It was not assigned in the constructor. When stream.resume is called on a readable stream that is not flowing, it is set to true. This changes the property map of the ReadableState which can cause a deopt in onEofChunk and needMoreData. PR-URL: nodejs#4761 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

streamIssues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@evanlucas@bnoordhuis@cjihrig@mscdex@jasnell@MylesBorins