Conversation

Paul E. McKenney

Bad things can happen if you leak pointers out of RCU read-side critical sections. What can you do about it?
https://people.kernel.org/paulmck/stupid-rcu-tricks-detecting-pointer-leaks
1
3
12

@paulmckrcu
I looked at using an opaque wrapper for proxy guarded references that could only be used in a proxy guarded scope. I decided it wasn't worth the bother. Too verbose.

This is as far as I got.
https://gist.github.com/jseigh/a625e31191d49844a0549ce304d0452b

You could add extra runtime overhead to tie the wrapped references to a specific proxy instance, I suppose.

1
0
1
@jwseigh I suspect that the Rust folks will eventually end up with something similar. But who knows?
0
0
0