Bosko Milekic 988cb8dfd9 Eliminate a race in MEXTFREE(). The reference counter decrement and test
was not atomic. We now make sure that we free the ext buf if the reference
count is about to reach 0 but also make sure that nobody else has done it
before us.

While I'm here, change refcnt to u_int (from long). This fixes a compiler
warning regarding use of atomic_cmpset_long on i386.

Submitted by: jasone
Reviewed by: jlemon, jake
2000-12-13 05:13:02 +00:00
..
2000-12-13 01:25:11 +00:00
2000-12-13 04:22:04 +00:00
2000-12-10 10:02:32 +00:00
2000-12-13 01:25:11 +00:00
2000-05-01 20:32:07 +00:00