Skip to content
New issue

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

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

Already on GitHub? # to your account

1.x: remove ObjectPool, code style cleanups #4846

Merged
merged 1 commit into from
Nov 14, 2016

Conversation

akarnokd
Copy link
Member

@akarnokd akarnokd commented Nov 13, 2016

This PR removes the ObjectPool and SynchronizedQueue as their utility now seems surpassed.

In addition, this PR contains a bunch of code style cleanups. Use the ?w=1 parameter to hide whitespace changes.

Other changes:

  • fix finality of BackpressureOverflow
  • introduce the system parameter for io scheduler time-to-live counter: rx.io-scheduler.keepalive
  • mention scheduler system parameters in the Schedulers javadoc

@codecov-io
Copy link

Current coverage is 84.16% (diff: 66.00%)

Merging #4846 into 1.x will increase coverage by 0.01%

@@                1.x      #4846   diff @@
==========================================
  Files           287        285     -2   
  Lines         17868      17763   -105   
  Methods           0          0          
  Messages          0          0          
  Branches       2706       2691    -15   
==========================================
- Hits          15036      14951    -85   
+ Misses         1970       1954    -16   
+ Partials        862        858     -4   

Powered by Codecov. Last update aa1c4ed...077c4d0

@akarnokd akarnokd merged commit dc63e53 into ReactiveX:1.x Nov 14, 2016
@akarnokd akarnokd deleted the ObjectPoolRemove branch November 14, 2016 18:12
this.pool = pool;
this.queue = pool.borrowObject();
private RxRingBuffer(boolean spmc, int size) {
this.queue = spmc ? new SpmcArrayQueue<Object>(size) : new SpscArrayQueue<Object>(size);
this.size = size;
}

public synchronized void release() { // NOPMD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just delete?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thought about it but it's a semi-public API and I didn't want to break it just that.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants