Commit graph

5 commits

Author SHA1 Message Date
Luke Gruber
54ef6c312a
[Bug #21400] Fix rb_bug() when killing current root fiber in non-main thread (#13526)
Fixes the following:

```ruby
Thread.new { Fiber.current.kill }.join
```
2025-06-06 09:31:45 +09:00
Koichi Sasada
603ab70961 support concurrent btest execution
* `-j` option for concurrent test with threads
  * `-jN` uses N threads
  * `-j` uses nproc/2 threads
* Introduce `BT` struct to manage configurations
* Introduce `Assertion` to manage all assertions
* Remove all toplevel instance variables
* Show elapsed seconds at last

```
$ time make btest
...
real    0m37.319s
user    0m26.221s
sys     0m16.534s

$ time make btest TESTOPTS=-j
...
real    0m11.812s
user    0m36.667s
sys     0m21.872s
```
2022-02-06 03:05:47 +09:00
Koichi Sasada
5e3a320218 respect --quiet option for btest
Do not print anymore except errors.
2022-01-21 17:38:11 +09:00
Samuel Williams
42130a64f0
Replace copy coroutine with pthread implementation. 2021-07-01 11:23:03 +12:00
Samuel Williams
012e954b47
Improved fiber benchmarks. Increase number of iterations. 2019-07-12 11:56:51 +12:00