OpenBSD cvs log

created 2022-05-03T06:55:22Z
begin 2022-04-30T13:28:53Z
end 2022-04-30T14:44:04Z
path src/sys
commits 1

date 2022-04-30T14:44:04Z
author visa
files src/sys/kern/kern_synch.c log diff annotate
message Enforce proper memory ordering in refcnt_rele() and refcnt_finalize()

Make refcnt_rele() and refcnt_finalize() order memory operations so that
preceding loads and stores happen before 1->0 transition. Also ensure
that loads and stores that depend on the transition really begin only
after the transition has occurred. Otherwise the object destructor might
not see the object's latest state.

OK bluhm@