Skip to content
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

ReplaySubject memory leak #1865

Closed
stackfull opened this issue Nov 12, 2014 · 2 comments
Closed

ReplaySubject memory leak #1865

stackfull opened this issue Nov 12, 2014 · 2 comments
Labels
Milestone

Comments

@stackfull
Copy link

This little baby will grind to a halt do due never letting go of the events:

import rx.subjects.ReplaySubject;

public class Application {
  public static void main(String[] args) {
    ReplaySubject<Integer> subject = ReplaySubject.createWithSize(10);
    subject.subscribe(x -> {});
    int ii = 0;
    while(true) {
      subject.onNext(ii);
      ii++;
    }
  }
}
@stackfull
Copy link
Author

tested on 1.0.0-rc.10

@benjchristensen
Copy link
Member

I merged the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants