Fix a potential race between creating and destroying mmaped strings
authorMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 3 Feb 2011 00:07:58 +0000 (16:07 -0800)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 3 Feb 2011 00:07:58 +0000 (16:07 -0800)
commit8e34363f0e6859525506f435ec657259871f281f
treeba8bdce5dd4ed58d0a97805afdd2ac621ca603a6
parent9c27547e07bfcadab7584f46185db77c486c1412
Fix a potential race between creating and destroying mmaped strings

Potentially, we might try to create a new reference to a memory-mapped
region while another thread unreferences and frees that region.  Ensure
when freeing the mapping that there really are no mappings (doube-check
after taking the lock).
bluesky/log.c