lsa: disable constant_time_size in binomial_heap implementation

Corrupts heap on boost < 1.60, and not needed.

Fixes #698.
This commit is contained in:
Avi Kivity
2015-12-29 13:25:16 +02:00
parent 37dfe9cfc6
commit 123eb04136

View File

@@ -158,7 +158,9 @@ thread_local T* prepared_buffers_allocator<T>::_prepared_buffer;
// Consider using an intrusive container leveraging segment_descriptor objects.
using segment_heap = boost::heap::binomial_heap<
segment*, boost::heap::compare<segment_occupancy_descending_less_compare>,
boost::heap::allocator<prepared_buffers_allocator<segment*>>>;
boost::heap::allocator<prepared_buffers_allocator<segment*>>,
// constant_time_size<true> causes corruption with boost < 1.60
boost::heap::constant_time_size<false>>;
using segment_heap_allocator = segment_heap::allocator_type;
struct segment {