Hacker News new | ask | show | jobs
by brickteacup 1115 days ago
`sample_consume_allowed` is an example of a transformation that the compiler is permitted to apply to the original function `sample_consume`. if the original function had used `acquire` instead of `consume` then the reordering of the v2 load before the p load wouldn't've been allowed
1 comments

Thank you, makes sense now