[PATCH] Fix incorrect assertion when deallocating big block

Jonathan Wakely jwakely@redhat.com
Tue Nov 13 23:04:00 GMT 2018


>@@ -932,8 +946,7 @@ namespace pmr
>   }
>
>   void
>-  __pool_resource::deallocate(void* p, size_t bytes [[maybe_unused]],
>-			      size_t alignment [[maybe_unused]])
>+  __pool_resource::deallocate(void* p, size_t bytes, size_t alignment)
>   {
>     const auto it
>       = std::lower_bound(_M_unpooled.begin(), _M_unpooled.end(), p);

This part of the change wasn't meant to be committed. Restored with
the attached patch.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 908 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20181113/d95207fe/attachment.bin>


More information about the Libstdc++ mailing list