Implementing Hazard Pointers in Rust (part 4/4)

 2 years ago
source link: https://www.youtube.com/watch?v=3oL1xokuHBE
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
0:00 / 3:25:52

Implementing Hazard Pointers in Rust (part 4/4)

Jan 15, 2022

39.7K subscribers

We continue our journey implementing Hazard Pointers (https://erdani.org/publications/cuj-2...) in Rust. We follow along with the C++ implementation in Facebook's Folly library (https://github.com/facebook/folly/blo...), starting from where we left off last time: https://github.com/facebook/folly/tre....

This time, the focus is on porting over tests and benchmarks, including using loom (for concurrency testing) and criterion (for benchmarks).


0:00:00 Introduction 0:02:22 Changes since last stream 0:11:39 The Twitter poll 0:13:35 folly's test suite 0:38:31 Domain::cleanup 0:45:19 Porting folly tests 1:44:51 Custom deleters 1:58:49 Porting spin test to loom 2:46:36 Benchmarking hazard pointer creation 3:15:12 Benchmarking retire and reclaim 3:21:08 drop(stream)

You can find the code here: https://github.com/jonhoo/haphazard/

Live version with chat: https://youtu.be/t0Nza-v1XIg

Show less

Show more

About Joyk

Aggregate valuable and interesting links.
Joyk means Joy of geeK