Skip to content

Allow garbage collection of processed queue items #752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 4, 2015

Conversation

dohse
Copy link
Contributor

@dohse dohse commented May 17, 2015

Set processed queue items to null to allow garbage collection of these
items. The command queue contains callbacks. They contain the stack of
the current fiber, which can be large. Allow earlier garbage collection
of these stacks by removing the reference to the queue items.

Set processed queue items to `null` to allow garbage collection of these
items. The command queue contains callbacks. They contain the stack of
the current fiber, which can be large. Allow earlier garbage collection
of these stacks by removing the reference to the queue items.
@dohse dohse force-pushed the fix-queue-leak branch from ed7a134 to 3b6ab9e Compare May 17, 2015 19:07
@mren
Copy link

mren commented May 18, 2015

LGTM

@bcoe
Copy link
Contributor

bcoe commented Aug 18, 2015

@dohse looks good, but would you mind rebasing and adding a test or two to /test/queue.spec.js?

@BridgeAR
Copy link
Contributor

BridgeAR commented Sep 2, 2015

@bcoe Hm, what tests should be added here? There is already a test for the function itself so I'd say it's ready to merge.

@bcoe
Copy link
Contributor

bcoe commented Sep 3, 2015

@BridgeAR fine by me, but let's rebase with master so that we force a full test-suite run ... this does change the behavior of the queue slightly 👍

@BridgeAR
Copy link
Contributor

BridgeAR commented Sep 4, 2015

As all tests pass with the patch applied, I'll merge it. Thx @dohse

@BridgeAR BridgeAR closed this Sep 4, 2015
@BridgeAR BridgeAR reopened this Sep 4, 2015
BridgeAR added a commit that referenced this pull request Sep 4, 2015
Allow garbage collection of processed queue items
@BridgeAR BridgeAR merged commit bd5cc64 into redis:master Sep 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants