Fix incorrect carrier count statistics after using instrument module
The number of carriers in a shared pool (allctr->cpool.stat.no_carriers) was decremented every time a call to instrument:allocations or instrument:carriers yielded while traversing the pool.
Also make sure to not free or re-insert a yield cursor (dummy carrier) into shared carrier pool until thread progress has passed.
CT Test Results
3 files 143 suites 49m 3s :stopwatch: 1 591 tests 1 542 :white_check_mark: 49 :zzz: 0 :x: 2 330 runs 2 256 :white_check_mark: 74 :zzz: 0 :x:
Results for commit d63d6564.
:recycle: This comment has been updated with latest results.
To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.
See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.
Artifacts
// Erlang/OTP Github Action Bot