<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 20: mix of allocate and construct in vyukov_queue_pool</title><link>https://sourceforge.net/p/libcds/bugs/20/</link><description>Recent changes to 20: mix of allocate and construct in vyukov_queue_pool</description><atom:link href="https://sourceforge.net/p/libcds/bugs/20/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 04 May 2016 19:42:22 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/libcds/bugs/20/feed.rss" rel="self" type="application/rss+xml"/><item><title>#20 mix of allocate and construct in vyukov_queue_pool</title><link>https://sourceforge.net/p/libcds/bugs/20/?limit=25#8a37</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Fixed, see &lt;a href="https://github.com/khizmax/libcds/issues/57" rel="nofollow"&gt;https://github.com/khizmax/libcds/issues/57&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">khizmax</dc:creator><pubDate>Wed, 04 May 2016 19:42:22 -0000</pubDate><guid>https://sourceforge.netd88bf10ce36ab6d394f5b871a55ff6fce8f9f4d8</guid></item><item><title>mix of allocate and construct in vyukov_queue_pool</title><link>https://sourceforge.net/p/libcds/bugs/20/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In the documentation, it is stated that the pool should be used the following way :&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;Foo * p = pool_allocator().allocate( 1 );
new(p) Foo;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;But when creating the pool, the preallocate_pool function call cxx_allocator().NewArray that does allocate &lt;em&gt;and&lt;/em&gt; construct (so if i'm not wrong it calls the constructor ?) and the same goes for vyukov_queue_pool::allocate when the queue is empty when fallbacking to cxx_allocator().New().&lt;/p&gt;
&lt;p&gt;Is it by design? Do i miss something ?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 28 Apr 2016 16:30:00 -0000</pubDate><guid>https://sourceforge.netafb356a0674a0b9c4af53fa299548b73ac6ee66c</guid></item></channel></rss>