concurrent-ruby 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +478 -0
- data/Gemfile +41 -0
- data/LICENSE.md +23 -0
- data/README.md +381 -0
- data/Rakefile +327 -0
- data/ext/concurrent-ruby/ConcurrentRubyService.java +17 -0
- data/ext/concurrent-ruby/com/concurrent_ruby/ext/AtomicReferenceLibrary.java +175 -0
- data/ext/concurrent-ruby/com/concurrent_ruby/ext/JRubyMapBackendLibrary.java +248 -0
- data/ext/concurrent-ruby/com/concurrent_ruby/ext/JavaAtomicBooleanLibrary.java +93 -0
- data/ext/concurrent-ruby/com/concurrent_ruby/ext/JavaAtomicFixnumLibrary.java +113 -0
- data/ext/concurrent-ruby/com/concurrent_ruby/ext/JavaSemaphoreLibrary.java +159 -0
- data/ext/concurrent-ruby/com/concurrent_ruby/ext/SynchronizationLibrary.java +307 -0
- data/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/ConcurrentHashMap.java +31 -0
- data/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/ConcurrentHashMapV8.java +3863 -0
- data/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/LongAdder.java +203 -0
- data/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/Striped64.java +342 -0
- data/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/ConcurrentHashMapV8.java +3800 -0
- data/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/LongAdder.java +204 -0
- data/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/Striped64.java +291 -0
- data/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166y/ThreadLocalRandom.java +199 -0
- data/lib/concurrent-ruby.rb +1 -0
- data/lib/concurrent.rb +134 -0
- data/lib/concurrent/agent.rb +587 -0
- data/lib/concurrent/array.rb +66 -0
- data/lib/concurrent/async.rb +459 -0
- data/lib/concurrent/atom.rb +222 -0
- data/lib/concurrent/atomic/abstract_thread_local_var.rb +66 -0
- data/lib/concurrent/atomic/atomic_boolean.rb +126 -0
- data/lib/concurrent/atomic/atomic_fixnum.rb +143 -0
- data/lib/concurrent/atomic/atomic_markable_reference.rb +164 -0
- data/lib/concurrent/atomic/atomic_reference.rb +204 -0
- data/lib/concurrent/atomic/count_down_latch.rb +100 -0
- data/lib/concurrent/atomic/cyclic_barrier.rb +128 -0
- data/lib/concurrent/atomic/event.rb +109 -0
- data/lib/concurrent/atomic/java_count_down_latch.rb +42 -0
- data/lib/concurrent/atomic/java_thread_local_var.rb +37 -0
- data/lib/concurrent/atomic/mutex_atomic_boolean.rb +62 -0
- data/lib/concurrent/atomic/mutex_atomic_fixnum.rb +75 -0
- data/lib/concurrent/atomic/mutex_count_down_latch.rb +44 -0
- data/lib/concurrent/atomic/mutex_semaphore.rb +115 -0
- data/lib/concurrent/atomic/read_write_lock.rb +254 -0
- data/lib/concurrent/atomic/reentrant_read_write_lock.rb +379 -0
- data/lib/concurrent/atomic/ruby_thread_local_var.rb +161 -0
- data/lib/concurrent/atomic/semaphore.rb +145 -0
- data/lib/concurrent/atomic/thread_local_var.rb +104 -0
- data/lib/concurrent/atomic_reference/mutex_atomic.rb +56 -0
- data/lib/concurrent/atomic_reference/numeric_cas_wrapper.rb +28 -0
- data/lib/concurrent/atomics.rb +10 -0
- data/lib/concurrent/collection/copy_on_notify_observer_set.rb +107 -0
- data/lib/concurrent/collection/copy_on_write_observer_set.rb +111 -0
- data/lib/concurrent/collection/java_non_concurrent_priority_queue.rb +84 -0
- data/lib/concurrent/collection/lock_free_stack.rb +158 -0
- data/lib/concurrent/collection/map/atomic_reference_map_backend.rb +927 -0
- data/lib/concurrent/collection/map/mri_map_backend.rb +66 -0
- data/lib/concurrent/collection/map/non_concurrent_map_backend.rb +140 -0
- data/lib/concurrent/collection/map/synchronized_map_backend.rb +82 -0
- data/lib/concurrent/collection/non_concurrent_priority_queue.rb +143 -0
- data/lib/concurrent/collection/ruby_non_concurrent_priority_queue.rb +150 -0
- data/lib/concurrent/concern/deprecation.rb +34 -0
- data/lib/concurrent/concern/dereferenceable.rb +73 -0
- data/lib/concurrent/concern/logging.rb +32 -0
- data/lib/concurrent/concern/obligation.rb +220 -0
- data/lib/concurrent/concern/observable.rb +110 -0
- data/lib/concurrent/concurrent_ruby.jar +0 -0
- data/lib/concurrent/configuration.rb +184 -0
- data/lib/concurrent/constants.rb +8 -0
- data/lib/concurrent/dataflow.rb +81 -0
- data/lib/concurrent/delay.rb +199 -0
- data/lib/concurrent/errors.rb +69 -0
- data/lib/concurrent/exchanger.rb +352 -0
- data/lib/concurrent/executor/abstract_executor_service.rb +134 -0
- data/lib/concurrent/executor/cached_thread_pool.rb +62 -0
- data/lib/concurrent/executor/executor_service.rb +185 -0
- data/lib/concurrent/executor/fixed_thread_pool.rb +206 -0
- data/lib/concurrent/executor/immediate_executor.rb +66 -0
- data/lib/concurrent/executor/indirect_immediate_executor.rb +44 -0
- data/lib/concurrent/executor/java_executor_service.rb +91 -0
- data/lib/concurrent/executor/java_single_thread_executor.rb +29 -0
- data/lib/concurrent/executor/java_thread_pool_executor.rb +123 -0
- data/lib/concurrent/executor/ruby_executor_service.rb +78 -0
- data/lib/concurrent/executor/ruby_single_thread_executor.rb +22 -0
- data/lib/concurrent/executor/ruby_thread_pool_executor.rb +362 -0
- data/lib/concurrent/executor/safe_task_executor.rb +35 -0
- data/lib/concurrent/executor/serial_executor_service.rb +34 -0
- data/lib/concurrent/executor/serialized_execution.rb +107 -0
- data/lib/concurrent/executor/serialized_execution_delegator.rb +28 -0
- data/lib/concurrent/executor/simple_executor_service.rb +100 -0
- data/lib/concurrent/executor/single_thread_executor.rb +56 -0
- data/lib/concurrent/executor/thread_pool_executor.rb +87 -0
- data/lib/concurrent/executor/timer_set.rb +173 -0
- data/lib/concurrent/executors.rb +20 -0
- data/lib/concurrent/future.rb +141 -0
- data/lib/concurrent/hash.rb +59 -0
- data/lib/concurrent/immutable_struct.rb +93 -0
- data/lib/concurrent/ivar.rb +207 -0
- data/lib/concurrent/map.rb +337 -0
- data/lib/concurrent/maybe.rb +229 -0
- data/lib/concurrent/mutable_struct.rb +229 -0
- data/lib/concurrent/mvar.rb +242 -0
- data/lib/concurrent/options.rb +42 -0
- data/lib/concurrent/promise.rb +579 -0
- data/lib/concurrent/promises.rb +2167 -0
- data/lib/concurrent/re_include.rb +58 -0
- data/lib/concurrent/scheduled_task.rb +318 -0
- data/lib/concurrent/set.rb +66 -0
- data/lib/concurrent/settable_struct.rb +129 -0
- data/lib/concurrent/synchronization.rb +30 -0
- data/lib/concurrent/synchronization/abstract_lockable_object.rb +98 -0
- data/lib/concurrent/synchronization/abstract_object.rb +24 -0
- data/lib/concurrent/synchronization/abstract_struct.rb +160 -0
- data/lib/concurrent/synchronization/condition.rb +60 -0
- data/lib/concurrent/synchronization/jruby_lockable_object.rb +13 -0
- data/lib/concurrent/synchronization/jruby_object.rb +45 -0
- data/lib/concurrent/synchronization/lock.rb +36 -0
- data/lib/concurrent/synchronization/lockable_object.rb +74 -0
- data/lib/concurrent/synchronization/mri_object.rb +44 -0
- data/lib/concurrent/synchronization/mutex_lockable_object.rb +76 -0
- data/lib/concurrent/synchronization/object.rb +183 -0
- data/lib/concurrent/synchronization/rbx_lockable_object.rb +65 -0
- data/lib/concurrent/synchronization/rbx_object.rb +49 -0
- data/lib/concurrent/synchronization/truffleruby_object.rb +47 -0
- data/lib/concurrent/synchronization/volatile.rb +36 -0
- data/lib/concurrent/thread_safe/synchronized_delegator.rb +50 -0
- data/lib/concurrent/thread_safe/util.rb +16 -0
- data/lib/concurrent/thread_safe/util/adder.rb +74 -0
- data/lib/concurrent/thread_safe/util/cheap_lockable.rb +118 -0
- data/lib/concurrent/thread_safe/util/data_structures.rb +63 -0
- data/lib/concurrent/thread_safe/util/power_of_two_tuple.rb +38 -0
- data/lib/concurrent/thread_safe/util/striped64.rb +246 -0
- data/lib/concurrent/thread_safe/util/volatile.rb +75 -0
- data/lib/concurrent/thread_safe/util/xor_shift_random.rb +50 -0
- data/lib/concurrent/timer_task.rb +334 -0
- data/lib/concurrent/tuple.rb +86 -0
- data/lib/concurrent/tvar.rb +258 -0
- data/lib/concurrent/utility/at_exit.rb +97 -0
- data/lib/concurrent/utility/engine.rb +56 -0
- data/lib/concurrent/utility/monotonic_time.rb +58 -0
- data/lib/concurrent/utility/native_extension_loader.rb +79 -0
- data/lib/concurrent/utility/native_integer.rb +53 -0
- data/lib/concurrent/utility/processor_counter.rb +158 -0
- data/lib/concurrent/version.rb +3 -0
- metadata +193 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 96f32c31090c8a0547e4ee452739bdc993aad1256e2c89cb9a46d7f7e7b5762a
|
4
|
+
data.tar.gz: 307d26bde3add56b7e2b37fb0b016c7726a3ba0755dcfec8202fb0760e4ac485
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b8cff93c6ef396aebbe5cf69734d9a91f0351e24b5c1846ae105b055254f972cd9d6bb99b90ce10d387627ed43c4e21db9ce47d1587e10278e80e33a53f8d4c4
|
7
|
+
data.tar.gz: f367f097759eedb8e18b0117543176c9f30ab29552888fcedab0baaea355cee3d100d2559dd16cf54483778545097f8b3340bebe44b0e3ab2a51c1af3830f5e1
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,478 @@
|
|
1
|
+
## Current
|
2
|
+
|
3
|
+
## Release v1.1.5, edge v0.5.0 (10 mar 2019)
|
4
|
+
|
5
|
+
concurrent-ruby:
|
6
|
+
|
7
|
+
* fix potential leak of context on JRuby and Java 7
|
8
|
+
|
9
|
+
concurrent-ruby-edge:
|
10
|
+
|
11
|
+
* Add finalized Concurrent::Cancellation
|
12
|
+
* Add finalized Concurrent::Throttle
|
13
|
+
* Add finalized Concurrent::Promises::Channel
|
14
|
+
* Add new Concurrent::ErlangActor
|
15
|
+
|
16
|
+
## Release v1.1.4 (14 Dec 2018)
|
17
|
+
|
18
|
+
* (#780) Remove java_alias of 'submit' method of Runnable to let executor service work on java 11
|
19
|
+
* (#776) Fix NameError on defining a struct with a name which is already taken in an ancestor
|
20
|
+
|
21
|
+
## Release v1.1.3 (7 Nov 2018)
|
22
|
+
|
23
|
+
* (#775) fix partial require of the gem (although not officially supported)
|
24
|
+
|
25
|
+
## Release v1.1.2 (6 Nov 2018)
|
26
|
+
|
27
|
+
* (#773) more defensive 1.9.3 support
|
28
|
+
|
29
|
+
## Release v1.1.1, edge v0.4.1 (1 Nov 2018)
|
30
|
+
|
31
|
+
* (#768) add support for 1.9.3 back
|
32
|
+
|
33
|
+
## Release v1.1.0, edge v0.4.0 (31 OCt 2018) (yanked)
|
34
|
+
|
35
|
+
* (#768) yanked because of issues with removed 1.9.3 support
|
36
|
+
|
37
|
+
## Release v1.1.0.pre2, edge v0.4.0.pre2 (18 Sep 2018)
|
38
|
+
|
39
|
+
concurrent-ruby:
|
40
|
+
|
41
|
+
* fixed documentation and README links
|
42
|
+
* fix Set for TruffleRuby and Rubinius
|
43
|
+
* use properly supported TruffleRuby APIs
|
44
|
+
|
45
|
+
concurrent-ruby-edge:
|
46
|
+
|
47
|
+
* add Promises.zip_futures_over_on
|
48
|
+
|
49
|
+
## Release v1.1.0.pre1, edge v0.4.0.pre1 (15 Aug 2018)
|
50
|
+
|
51
|
+
concurrent-ruby:
|
52
|
+
|
53
|
+
* requires at least Ruby 2.0
|
54
|
+
* [Promises](http://ruby-concurrency.github.io/concurrent-ruby/1.1.0/Concurrent/Promises.html)
|
55
|
+
are moved from `concurrent-ruby-edge` to `concurrent-ruby`
|
56
|
+
* Add support for TruffleRuby
|
57
|
+
* (#734) Fix Array/Hash/Set construction broken on TruffleRuby
|
58
|
+
* AtomicReference fixed
|
59
|
+
* CI stabilization
|
60
|
+
* remove sharp dependency edge -> core
|
61
|
+
* remove warnings
|
62
|
+
* documentation updates
|
63
|
+
* Exchanger is no longer documented as edge since it was already available in
|
64
|
+
`concurrent-ruby`
|
65
|
+
* (#644) Fix Map#each and #each_pair not returning enumerator outside of MRI
|
66
|
+
* (#659) Edge promises fail during error handling
|
67
|
+
* (#741) Raise on recursive Delay#value call
|
68
|
+
* (#727) #717 fix global IO executor on JRuby
|
69
|
+
* (#740) Drop support for CRuby 1.9, JRuby 1.7, Rubinius.
|
70
|
+
* (#737) Move AtomicMarkableReference out of Edge
|
71
|
+
* (#708) Prefer platform specific memory barriers
|
72
|
+
* (#735) Fix wrong expected exception in channel spec assertion
|
73
|
+
* (#729) Allow executor option in `Promise#then`
|
74
|
+
* (#725) fix timeout check to use timeout_interval
|
75
|
+
* (#719) update engine detection
|
76
|
+
* (#660) Add specs for Promise#zip/Promise.zip ordering
|
77
|
+
* (#654) Promise.zip execution changes
|
78
|
+
* (#666) Add thread safe set implementation
|
79
|
+
* (#651) #699 #to_s, #inspect should not output negative object IDs.
|
80
|
+
* (#685) Avoid RSpec warnings about raise_error
|
81
|
+
* (#680) Avoid RSpec monkey patching, persist spec results locally, use RSpec
|
82
|
+
v3.7.0
|
83
|
+
* (#665) Initialize the monitor for new subarrays on Rubinius
|
84
|
+
* (#661) Fix error handling in edge promises
|
85
|
+
|
86
|
+
concurrent-ruby-edge:
|
87
|
+
|
88
|
+
* (#659) Edge promises fail during error handling
|
89
|
+
* Edge files clearly separated in `lib-edge`
|
90
|
+
* added ReInclude
|
91
|
+
|
92
|
+
## Release v1.0.5, edge v0.3.1 (26 Feb 2017)
|
93
|
+
|
94
|
+
concurrent-ruby:
|
95
|
+
|
96
|
+
* Documentation for Event and Semaphore
|
97
|
+
* Use Unsafe#fullFence and #loadFence directly since the shortcuts were removed in JRuby
|
98
|
+
* Do not depend on org.jruby.util.unsafe.UnsafeHolder
|
99
|
+
|
100
|
+
concurrent-ruby-edge:
|
101
|
+
|
102
|
+
* (#620) Actors on Pool raise an error
|
103
|
+
* (#624) Delayed promises did not interact correctly with flatting
|
104
|
+
* Fix arguments yielded by callback methods
|
105
|
+
* Overridable default executor in promises factory methods
|
106
|
+
* Asking actor to terminate will always resolve to `true`
|
107
|
+
|
108
|
+
## Release v1.0.4, edge v0.3.0 (27 Dec 2016)
|
109
|
+
|
110
|
+
concurrent-ruby:
|
111
|
+
|
112
|
+
* Nothing
|
113
|
+
|
114
|
+
concurrent-ruby-edge:
|
115
|
+
|
116
|
+
* New promises' API renamed, lots of improvements, edge bumped to 0.3.0
|
117
|
+
* **Incompatible** with previous 0.2.3 version
|
118
|
+
* see https://github.com/ruby-concurrency/concurrent-ruby/pull/522
|
119
|
+
|
120
|
+
## Release v1.0.3 (17 Dec 2016)
|
121
|
+
|
122
|
+
* Trigger execution of flattened delayed futures
|
123
|
+
* Avoid forking for processor_count if possible
|
124
|
+
* Semaphore Mutex and JRuby parity
|
125
|
+
* Adds Map#each as alias to Map#each_pair
|
126
|
+
* Fix uninitialized instance variables
|
127
|
+
* Make Fixnum, Bignum merger ready
|
128
|
+
* Allows Promise#then to receive an executor
|
129
|
+
* TimerSet now survives a fork
|
130
|
+
* Reject promise on any exception
|
131
|
+
* Allow ThreadLocalVar to be initialized with a block
|
132
|
+
* Support Alpha with `Concurrent::processor_count`
|
133
|
+
* Fixes format-security error when compiling ruby_193_compatible.h
|
134
|
+
* Concurrent::Atom#swap fixed: reraise the exceptions from block
|
135
|
+
|
136
|
+
## Release v1.0.2 (2 May 2016)
|
137
|
+
|
138
|
+
* Fix bug with `Concurrent::Map` MRI backend `#inspect` method
|
139
|
+
* Fix bug with `Concurrent::Map` MRI backend using `Hash#value?`
|
140
|
+
* Improved documentation and examples
|
141
|
+
* Minor updates to Edge
|
142
|
+
|
143
|
+
## Release v1.0.1 (27 February 2016)
|
144
|
+
|
145
|
+
* Fix "uninitialized constant Concurrent::ReentrantReadWriteLock" error.
|
146
|
+
* Better handling of `autoload` vs. `require`.
|
147
|
+
* Improved API for Edge `Future` zipping.
|
148
|
+
* Fix reference leak in Edge `Future` constructor .
|
149
|
+
* Fix bug which prevented thread pools from surviving a `fork`.
|
150
|
+
* Fix bug in which `TimerTask` did not correctly specify all its dependencies.
|
151
|
+
* Improved support for JRuby+Truffle
|
152
|
+
* Improved error messages.
|
153
|
+
* Improved documentation.
|
154
|
+
* Updated README and CONTRIBUTING.
|
155
|
+
|
156
|
+
## Release v1.0.0 (13 November 2015)
|
157
|
+
|
158
|
+
* Rename `attr_volatile_with_cas` to `attr_atomic`
|
159
|
+
* Add `clear_each` to `LockFreeStack`
|
160
|
+
* Update `AtomicReference` documentation
|
161
|
+
* Further updates and improvements to the synchronization layer.
|
162
|
+
* Performance and memory usage performance with `Actor` logging.
|
163
|
+
* Fixed `ThreadPoolExecutor` task count methods.
|
164
|
+
* Improved `Async` performance for both short and long-lived objects.
|
165
|
+
* Fixed bug in `LockFreeLinkedSet`.
|
166
|
+
* Fixed bug in which `Agent#await` triggered a validation failure.
|
167
|
+
* Further `Channel` updates.
|
168
|
+
* Adopted a project Code of Conduct
|
169
|
+
* Cleared interpreter warnings
|
170
|
+
* Fixed bug in `ThreadPoolExecutor` task count methods
|
171
|
+
* Fixed bug in 'LockFreeLinkedSet'
|
172
|
+
* Improved Java extension loading
|
173
|
+
* Handle Exception children in Edge::Future
|
174
|
+
* Continued improvements to channel
|
175
|
+
* Removed interpreter warnings.
|
176
|
+
* Shared constants now in `lib/concurrent/constants.rb`
|
177
|
+
* Refactored many tests.
|
178
|
+
* Improved synchronization layer/memory model documentation.
|
179
|
+
* Bug fix in Edge `Future#flat`
|
180
|
+
* Brand new `Channel` implementation in Edge gem.
|
181
|
+
* Simplification of `RubySingleThreadExecutor`
|
182
|
+
* `Async` improvements
|
183
|
+
- Each object uses its own `SingleThreadExecutor` instead of the global thread pool.
|
184
|
+
- No longers supports executor injection
|
185
|
+
- Much better documentation
|
186
|
+
* `Atom` updates
|
187
|
+
- No longer `Dereferenceable`
|
188
|
+
- Now `Observable`
|
189
|
+
- Added a `#reset` method
|
190
|
+
* Brand new `Agent` API and implementation. Now functionally equivalent to Clojure.
|
191
|
+
* Continued improvements to the synchronization layer
|
192
|
+
* Merged in the `thread_safe` gem
|
193
|
+
- `Concurrent::Array`
|
194
|
+
- `Concurrent::Hash`
|
195
|
+
- `Concurrent::Map` (formerly ThreadSafe::Cache)
|
196
|
+
- `Concurrent::Tuple`
|
197
|
+
* Minor improvements to Concurrent::Map
|
198
|
+
* Complete rewrite of `Exchanger`
|
199
|
+
* Removed all deprecated code (classes, methods, constants, etc.)
|
200
|
+
* Updated Agent, MutexAtomic, and BufferedChannel to inherit from Synchronization::Object.
|
201
|
+
* Many improved tests
|
202
|
+
* Some internal reorganization
|
203
|
+
|
204
|
+
## Release v0.9.1 (09 August 2015)
|
205
|
+
|
206
|
+
* Fixed a Rubiniux bug in synchronization object
|
207
|
+
* Fixed all interpreter warnings (except circular references)
|
208
|
+
* Fixed require statements when requiring `Atom` alone
|
209
|
+
* Significantly improved `ThreadLocalVar` on non-JRuby platforms
|
210
|
+
* Fixed error handling in Edge `Concurrent.zip`
|
211
|
+
* `AtomicFixnum` methods `#increment` and `#decrement` now support optional delta
|
212
|
+
* New `AtomicFixnum#update` method
|
213
|
+
* Minor optimizations in `ReadWriteLock`
|
214
|
+
* New `ReentrantReadWriteLock` class
|
215
|
+
* `ThreadLocalVar#bind` method is now public
|
216
|
+
* Refactored many tests
|
217
|
+
|
218
|
+
## Release v0.9.0 (10 July 2015)
|
219
|
+
|
220
|
+
* Updated `AtomicReference`
|
221
|
+
- `AtomicReference#try_update` now simply returns instead of raising exception
|
222
|
+
- `AtomicReference#try_update!` was added to raise exceptions if an update
|
223
|
+
fails. Note: this is the same behavior as the old `try_update`
|
224
|
+
* Pure Java implementations of
|
225
|
+
- `AtomicBoolean`
|
226
|
+
- `AtomicFixnum`
|
227
|
+
- `Semaphore`
|
228
|
+
* Fixed bug when pruning Ruby thread pools
|
229
|
+
* Fixed bug in time calculations within `ScheduledTask`
|
230
|
+
* Default `count` in `CountDownLatch` to 1
|
231
|
+
* Use monotonic clock for all timers via `Concurrent.monotonic_time`
|
232
|
+
- Use `Process.clock_gettime(Process::CLOCK_MONOTONIC)` when available
|
233
|
+
- Fallback to `java.lang.System.nanoTime()` on unsupported JRuby versions
|
234
|
+
- Pure Ruby implementation for everything else
|
235
|
+
- Effects `Concurrent.timer`, `Concurrent.timeout`, `TimerSet`, `TimerTask`, and `ScheduledTask`
|
236
|
+
* Deprecated all clock-time based timer scheduling
|
237
|
+
- Only support scheduling by delay
|
238
|
+
- Effects `Concurrent.timer`, `TimerSet`, and `ScheduledTask`
|
239
|
+
* Added new `ReadWriteLock` class
|
240
|
+
* Consistent `at_exit` behavior for Java and Ruby thread pools.
|
241
|
+
* Added `at_exit` handler to Ruby thread pools (already in Java thread pools)
|
242
|
+
- Ruby handler stores the object id and retrieves from `ObjectSpace`
|
243
|
+
- JRuby disables `ObjectSpace` by default so that handler stores the object reference
|
244
|
+
* Added a `:stop_on_exit` option to thread pools to enable/disable `at_exit` handler
|
245
|
+
* Updated thread pool docs to better explain shutting down thread pools
|
246
|
+
* Simpler `:executor` option syntax for all abstractions which support this option
|
247
|
+
* Added `Executor#auto_terminate?` predicate method (for thread pools)
|
248
|
+
* Added `at_exit` handler to `TimerSet`
|
249
|
+
* Simplified auto-termination of the global executors
|
250
|
+
- Can now disable auto-termination of global executors
|
251
|
+
- Added shutdown/kill/wait_for_termination variants for global executors
|
252
|
+
* Can now disable auto-termination for *all* executors (the nuclear option)
|
253
|
+
* Simplified auto-termination of the global executors
|
254
|
+
* Deprecated terms "task pool" and "operation pool"
|
255
|
+
- New terms are "io executor" and "fast executor"
|
256
|
+
- New functions added with new names
|
257
|
+
- Deprecation warnings added to functions referencing old names
|
258
|
+
* Moved all thread pool related functions from `Concurrent::Configuration` to `Concurrent`
|
259
|
+
- Old functions still exist with deprecation warnings
|
260
|
+
- New functions have updated names as appropriate
|
261
|
+
* All high-level abstractions default to the "io executor"
|
262
|
+
* Fixed bug in `Actor` causing it to prematurely warm global thread pools on gem load
|
263
|
+
- This also fixed a `RejectedExecutionError` bug when running with minitest/autorun via JRuby
|
264
|
+
* Moved global logger up to the `Concurrent` namespace and refactored the code
|
265
|
+
* Optimized the performance of `Delay`
|
266
|
+
- Fixed a bug in which no executor option on construction caused block execution on a global thread pool
|
267
|
+
* Numerous improvements and bug fixes to `TimerSet`
|
268
|
+
* Fixed deadlock of `Future` when the handler raises Exception
|
269
|
+
* Added shared specs for more classes
|
270
|
+
* New concurrency abstractions including:
|
271
|
+
- `Atom`
|
272
|
+
- `Maybe`
|
273
|
+
- `ImmutableStruct`
|
274
|
+
- `MutableStruct`
|
275
|
+
- `SettableStruct`
|
276
|
+
* Created an Edge gem for unstable abstractions including
|
277
|
+
- `Actor`
|
278
|
+
- `Agent`
|
279
|
+
- `Channel`
|
280
|
+
- `Exchanger`
|
281
|
+
- `LazyRegister`
|
282
|
+
- **new Future Framework** <http://ruby-concurrency.github.io/concurrent-ruby/Concurrent/Edge.html> - unified
|
283
|
+
implementation of Futures and Promises which combines Features of previous `Future`,
|
284
|
+
`Promise`, `IVar`, `Event`, `Probe`, `dataflow`, `Delay`, `TimerTask` into single framework. It uses extensively
|
285
|
+
new synchronization layer to make all the paths **lock-free** with exception of blocking threads on `#wait`.
|
286
|
+
It offers better performance and does not block threads when not required.
|
287
|
+
* Actor framework changes:
|
288
|
+
- fixed reset loop in Pool
|
289
|
+
- Pool can use any actor as a worker, abstract worker class is no longer needed.
|
290
|
+
- Actor events not have format `[:event_name, *payload]` instead of just the Symbol.
|
291
|
+
- Actor now uses new Future/Promise Framework instead of `IVar` for better interoperability
|
292
|
+
- Behaviour definition array was simplified to `[BehaviourClass1, [BehaviourClass2, *initialization_args]]`
|
293
|
+
- Linking behavior responds to :linked message by returning array of linked actors
|
294
|
+
- Supervised behavior is removed in favour of just Linking
|
295
|
+
- RestartingContext is supervised by default now, `supervise: true` is not required any more
|
296
|
+
- Events can be private and public, so far only difference is that Linking will
|
297
|
+
pass to linked actors only public messages. Adding private :restarting and
|
298
|
+
:resetting events which are send before the actor restarts or resets allowing
|
299
|
+
to add callbacks to cleanup current child actors.
|
300
|
+
- Print also object_id in Reference to_s
|
301
|
+
- Add AbstractContext#default_executor to be able to override executor class wide
|
302
|
+
- Add basic IO example
|
303
|
+
- Documentation somewhat improved
|
304
|
+
- All messages should have same priority. It's now possible to send `actor << job1 << job2 << :terminate!` and
|
305
|
+
be sure that both jobs are processed first.
|
306
|
+
* Refactored `Channel` to use newer synchronization objects
|
307
|
+
* Added `#reset` and `#cancel` methods to `TimerSet`
|
308
|
+
* Added `#cancel` method to `Future` and `ScheduledTask`
|
309
|
+
* Refactored `TimerSet` to use `ScheduledTask`
|
310
|
+
* Updated `Async` with a factory that initializes the object
|
311
|
+
* Deprecated `Concurrent.timer` and `Concurrent.timeout`
|
312
|
+
* Reduced max threads on pure-Ruby thread pools (abends around 14751 threads)
|
313
|
+
* Moved many private/internal classes/modules into "namespace" modules
|
314
|
+
* Removed brute-force killing of threads in tests
|
315
|
+
* Fixed a thread pool bug when the operating system cannot allocate more threads
|
316
|
+
|
317
|
+
## Release v0.8.0 (25 January 2015)
|
318
|
+
|
319
|
+
* C extension for MRI have been extracted into the `concurrent-ruby-ext` companion gem.
|
320
|
+
Please see the README for more detail.
|
321
|
+
* Better variable isolation in `Promise` and `Future` via an `:args` option
|
322
|
+
* Continued to update intermittently failing tests
|
323
|
+
|
324
|
+
## Release v0.7.2 (24 January 2015)
|
325
|
+
|
326
|
+
* New `Semaphore` class based on [java.util.concurrent.Semaphore](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Semaphore.html)
|
327
|
+
* New `Promise.all?` and `Promise.any?` class methods
|
328
|
+
* Renamed `:overflow_policy` on thread pools to `:fallback_policy`
|
329
|
+
* Thread pools still accept the `:overflow_policy` option but display a warning
|
330
|
+
* Thread pools now implement `fallback_policy` behavior when not running (rather than universally rejecting tasks)
|
331
|
+
* Fixed minor `set_deref_options` constructor bug in `Promise` class
|
332
|
+
* Fixed minor `require` bug in `ThreadLocalVar` class
|
333
|
+
* Fixed race condition bug in `TimerSet` class
|
334
|
+
* Fixed race condition bug in `TimerSet` class
|
335
|
+
* Fixed signal bug in `TimerSet#post` method
|
336
|
+
* Numerous non-functional updates to clear warning when running in debug mode
|
337
|
+
* Fixed more intermittently failing tests
|
338
|
+
* Tests now run on new Travis build environment
|
339
|
+
* Multiple documentation updates
|
340
|
+
|
341
|
+
## Release v0.7.1 (4 December 2014)
|
342
|
+
|
343
|
+
Please see the [roadmap](https://github.com/ruby-concurrency/concurrent-ruby/issues/142) for more information on the next planned release.
|
344
|
+
|
345
|
+
* Added `flat_map` method to `Promise`
|
346
|
+
* Added `zip` method to `Promise`
|
347
|
+
* Fixed bug with logging in `Actor`
|
348
|
+
* Improvements to `Promise` tests
|
349
|
+
* Removed actor-experimental warning
|
350
|
+
* Added an `IndirectImmediateExecutor` class
|
351
|
+
* Allow disabling auto termination of global executors
|
352
|
+
* Fix thread leaking in `ThreadLocalVar` (uses `Ref` gem on non-JRuby systems)
|
353
|
+
* Fix thread leaking when pruning pure-Ruby thread pools
|
354
|
+
* Prevent `Actor` from using an `ImmediateExecutor` (causes deadlock)
|
355
|
+
* Added missing synchronizations to `TimerSet`
|
356
|
+
* Fixed bug with return value of `Concurrent::Actor::Utils::Pool#ask`
|
357
|
+
* Fixed timing bug in `TimerTask`
|
358
|
+
* Fixed bug when creating a `JavaThreadPoolExecutor` with minimum pool size of zero
|
359
|
+
* Removed confusing warning when not using native extenstions
|
360
|
+
* Improved documentation
|
361
|
+
|
362
|
+
## Release v0.7.0 (13 August 2014)
|
363
|
+
|
364
|
+
* Merge the [atomic](https://github.com/ruby-concurrency/atomic) gem
|
365
|
+
- Pure Ruby `MutexAtomic` atomic reference class
|
366
|
+
- Platform native atomic reference classes `CAtomic`, `JavaAtomic`, and `RbxAtomic`
|
367
|
+
- Automated [build process](https://github.com/ruby-concurrency/rake-compiler-dev-box)
|
368
|
+
- Fat binary releases for [multiple platforms](https://rubygems.org/gems/concurrent-ruby/versions) including Windows (32/64), Linux (32/64), OS X (64-bit), Solaris (64-bit), and JRuby
|
369
|
+
* C native `CAtomicBoolean`
|
370
|
+
* C native `CAtomicFixnum`
|
371
|
+
* Refactored intermittently failing tests
|
372
|
+
* Added `dataflow!` and `dataflow_with!` methods to match `Future#value!` method
|
373
|
+
* Better handling of timeout in `Agent`
|
374
|
+
* Actor Improvements
|
375
|
+
- Fine-grained implementation using chain of behaviors. Each behavior is responsible for single aspect like: `Termination`, `Pausing`, `Linking`, `Supervising`, etc. Users can create custom Actors easily based on their needs.
|
376
|
+
- Supervision was added. `RestartingContext` will pause on error waiting on its supervisor to decide what to do next ( options are `:terminate!`, `:resume!`, `:reset!`, `:restart!`). Supervising behavior also supports strategies `:one_for_one` and `:one_for_all`.
|
377
|
+
- Linking was added to be able to monitor actor's events like: `:terminated`, `:paused`, `:restarted`, etc.
|
378
|
+
- Dead letter routing added. Rejected envelopes are collected in a configurable actor (default: `Concurrent::Actor.root.ask!(:dead_letter_routing)`)
|
379
|
+
- Old `Actor` class removed and replaced by new implementation previously called `Actress`. `Actress` was kept as an alias for `Actor` to keep compatibility.
|
380
|
+
- `Utils::Broadcast` actor which allows Publish–subscribe pattern.
|
381
|
+
* More executors for managing serialized operations
|
382
|
+
- `SerializedExecution` mixin module
|
383
|
+
- `SerializedExecutionDelegator` for serializing *any* executor
|
384
|
+
* Updated `Async` with serialized execution
|
385
|
+
* Updated `ImmediateExecutor` and `PerThreadExecutor` with full executor service lifecycle
|
386
|
+
* Added a `Delay` to root `Actress` initialization
|
387
|
+
* Minor bug fixes to thread pools
|
388
|
+
* Refactored many intermittently failing specs
|
389
|
+
* Removed Java interop warning `executor.rb:148 warning: ambiguous Java methods found, using submit(java.lang.Runnable)`
|
390
|
+
* Fixed minor bug in `RubyCachedThreadPool` overflow policy
|
391
|
+
* Updated tests to use [RSpec 3.0](http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3)
|
392
|
+
* Removed deprecated `Actor` class
|
393
|
+
* Better support for Rubinius
|
394
|
+
|
395
|
+
## Release v0.6.1 (14 June 2014)
|
396
|
+
|
397
|
+
* Many improvements to `Concurrent::Actress`
|
398
|
+
* Bug fixes to `Concurrent::RubyThreadPoolExecutor`
|
399
|
+
* Fixed several brittle tests
|
400
|
+
* Moved documentation to http://ruby-concurrency.github.io/concurrent-ruby/frames.html
|
401
|
+
|
402
|
+
## Release v0.6.0 (25 May 2014)
|
403
|
+
|
404
|
+
* Added `Concurrent::Observable` to encapsulate our thread safe observer sets
|
405
|
+
* Improvements to new `Channel`
|
406
|
+
* Major improvements to `CachedThreadPool` and `FixedThreadPool`
|
407
|
+
* Added `SingleThreadExecutor`
|
408
|
+
* Added `Current::timer` function
|
409
|
+
* Added `TimerSet` executor
|
410
|
+
* Added `AtomicBoolean`
|
411
|
+
* `ScheduledTask` refactoring
|
412
|
+
* Pure Ruby and JRuby-optimized `PriorityQueue` classes
|
413
|
+
* Updated `Agent` behavior to more closely match Clojure
|
414
|
+
* Observer sets support block callbacks to the `add_observer` method
|
415
|
+
* New algorithm for thread creation in `RubyThreadPoolExecutor`
|
416
|
+
* Minor API updates to `Event`
|
417
|
+
* Rewritten `TimerTask` now an `Executor` instead of a `Runnable`
|
418
|
+
* Fixed many brittle specs
|
419
|
+
* Renamed `FixedThreadPool` and `CachedThreadPool` to `RubyFixedThreadPool` and `RubyCachedThreadPool`
|
420
|
+
* Created JRuby optimized `JavaFixedThreadPool` and `JavaCachedThreadPool`
|
421
|
+
* Consolidated fixed thread pool tests into `spec/concurrent/fixed_thread_pool_shared.rb` and `spec/concurrent/cached_thread_pool_shared.rb`
|
422
|
+
* `FixedThreadPool` now subclasses `RubyFixedThreadPool` or `JavaFixedThreadPool` as appropriate
|
423
|
+
* `CachedThreadPool` now subclasses `RubyCachedThreadPool` or `JavaCachedThreadPool` as appropriate
|
424
|
+
* New `Delay` class
|
425
|
+
* `Concurrent::processor_count` helper function
|
426
|
+
* New `Async` module
|
427
|
+
* Renamed `NullThreadPool` to `PerThreadExecutor`
|
428
|
+
* Deprecated `Channel` (we are planning a new implementation based on [Go](http://golangtutorials.blogspot.com/2011/06/channels-in-go.html))
|
429
|
+
* Added gem-level [configuration](http://robots.thoughtbot.com/mygem-configure-block)
|
430
|
+
* Deprecated `$GLOBAL_THREAD_POOL` in lieu of gem-level configuration
|
431
|
+
* Removed support for Ruby [1.9.2](https://www.ruby-lang.org/en/news/2013/12/17/maintenance-of-1-8-7-and-1-9-2/)
|
432
|
+
* New `RubyThreadPoolExecutor` and `JavaThreadPoolExecutor` classes
|
433
|
+
* All thread pools now extend the appropriate thread pool executor classes
|
434
|
+
* All thread pools now support `:overflow_policy` (based on Java's [reject policies](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadPoolExecutor.html))
|
435
|
+
* Deprecated `UsesGlobalThreadPool` in lieu of explicit `:executor` option (dependency injection) on `Future`, `Promise`, and `Agent`
|
436
|
+
* Added `Concurrent::dataflow_with(executor, *inputs)` method to support executor dependency injection for dataflow
|
437
|
+
* Software transactional memory with `TVar` and `Concurrent::atomically`
|
438
|
+
* First implementation of [new, high-performance](https://github.com/ruby-concurrency/concurrent-ruby/pull/49) `Channel`
|
439
|
+
* `Actor` is deprecated in favor of new experimental actor implementation [#73](https://github.com/ruby-concurrency/concurrent-ruby/pull/73). To avoid namespace collision it is living in `Actress` namespace until `Actor` is removed in next release.
|
440
|
+
|
441
|
+
## Release v0.5.0
|
442
|
+
|
443
|
+
This is the most significant release of this gem since its inception. This release includes many improvements and optimizations. It also includes several bug fixes. The major areas of focus for this release were:
|
444
|
+
|
445
|
+
* Stability improvements on Ruby versions with thread-level parallelism ([JRuby](http://jruby.org/) and [Rubinius](http://rubini.us/))
|
446
|
+
* Creation of new low-level concurrency abstractions
|
447
|
+
* Internal refactoring to use the new low-level abstractions
|
448
|
+
|
449
|
+
Most of these updates had no effect on the gem API. There are a few notable exceptions which were unavoidable. Please read the [release notes](API-Updates-in-v0.5.0) for more information.
|
450
|
+
|
451
|
+
Specific changes include:
|
452
|
+
|
453
|
+
* New class `IVar`
|
454
|
+
* New class `MVar`
|
455
|
+
* New class `ThreadLocalVar`
|
456
|
+
* New class `AtomicFixnum`
|
457
|
+
* New class method `dataflow`
|
458
|
+
* New class `Condition`
|
459
|
+
* New class `CountDownLatch`
|
460
|
+
* New class `DependencyCounter`
|
461
|
+
* New class `SafeTaskExecutor`
|
462
|
+
* New class `CopyOnNotifyObserverSet`
|
463
|
+
* New class `CopyOnWriteObserverSet`
|
464
|
+
* `Future` updated with `execute` API
|
465
|
+
* `ScheduledTask` updated with `execute` API
|
466
|
+
* New `Promise` API
|
467
|
+
* `Future` now extends `IVar`
|
468
|
+
* `Postable#post?` now returns an `IVar`
|
469
|
+
* Thread safety fixes to `Dereferenceable`
|
470
|
+
* Thread safety fixes to `Obligation`
|
471
|
+
* Thread safety fixes to `Supervisor`
|
472
|
+
* Thread safety fixes to `Event`
|
473
|
+
* Various other thread safety (race condition) fixes
|
474
|
+
* Refactored brittle tests
|
475
|
+
* Implemented pending tests
|
476
|
+
* Added JRuby and Rubinius as Travis CI build targets
|
477
|
+
* Added [CodeClimate](https://codeclimate.com/) code review
|
478
|
+
* Improved YARD documentation
|