Files
bind9/lib/isc/include/isc
Mark Andrews 6278899a38 Use memory_order_acq_rel in isc_refcount_decrement.
While

if (isc_refcount_decrement() == 1) {	// memory_order_release
	isc_refcount_destroy();		// memory_order_acquire
	...
}

is theoretically the most efficent in practice, using
memory_order_acq_rel produces the same code on x86_64 and doesn't
trigger tsan data races (which use a idealistic model) if
isc_refcount_destroy() is not called immediately.  In fact
isc_refcount_destroy() could be removed if we didn't want
to check for the count being 0 when isc_refcount_destroy() is
called.

https://stackoverflow.com/questions/49112732/memory-order-in-shared-pointer-destructor
2020-09-01 12:05:18 +00:00
..
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-25 09:07:45 +01:00
2020-07-15 22:35:07 -07:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-21 15:05:08 +11:00
2020-02-13 15:05:06 -08:00
2020-02-16 17:34:24 +01:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-05-12 22:01:54 +10:00
2020-06-05 08:34:51 +10:00