Fixes #41: Data race in boost::interprocess::rbtree_best_fit

This commit is contained in:
Ion Gaztañaga
2017-10-26 22:17:20 +02:00
parent be3a7e272b
commit 799356d975
2 changed files with 7 additions and 1 deletions

View File

@@ -6762,6 +6762,12 @@ thank them:
[section:release_notes Release Notes]
[section:release_notes_boost_1_66_00 Boost 1.66 Release]
* Fixed bugs:
* [@https://github.com/boostorg/interprocess/pull/41 GitHub Pull #41 (['"Data race in boost::interprocess::rbtree_best_fit"])].
[endsect]
[section:release_notes_boost_1_65_00 Boost 1.65 Release]
* Fixed bugs:
* [@https://github.com/boostorg/interprocess/pull/37 GitHub Pull #37 (['"Conditionally replace deprecated/removed std::auto_ptr..."])].

View File

@@ -109,7 +109,7 @@ class rbtree_best_fit
{
//!This block's memory size (including block_ctrl
//!header) in Alignment units
size_type m_prev_size : sizeof(size_type)*CHAR_BIT;
size_type m_prev_size;
size_type m_size : sizeof(size_type)*CHAR_BIT - 2;
size_type m_prev_allocated : 1;
size_type m_allocated : 1;