2
0
mirror of https://github.com/boostorg/pool.git synced 2026-01-27 19:12:14 +00:00
Commit Graph

87 Commits

Author SHA1 Message Date
Marshall Clow
ec7da07ed1 Fix naked 'max' call that was failing on Windows. Fixes #864 2024-02-26 19:48:08 -08:00
Lei Mao
8ec1be1e82 Fix the Broken malloc_n Behavior (#53)
* Fix the Broken `malloc_n` Behavior

* Fix the Broken `malloc_n` Behavior

* Fix the Broken `malloc_n` Behavior

Added Unit Tests

* Fix the Broken `malloc_n` Behavior

Add more unit tests.

* Fix the Broken `malloc_n` Behavior

* Fix the Broken `malloc_n` Behavior

* Fix the Broken `malloc_n` Behavior
2023-01-15 12:23:45 +00:00
Orgad Shaneh
951ca57252 fix integer overflows in pool::ordered_malloc (#42)
Fixes trac #6701 (https://svn.boost.org/trac10/ticket/6701).

Originally-by: Jonathan Wakely <jwakely.boost@kayari.org>
2021-11-03 18:39:23 -07:00
Edward Diener
0754642bba Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers. (#33) 2020-04-16 08:14:50 -07:00
Peter Dimov
9def9a536f Replace boost::mutex use to avoid a dependency on Boost.Thread 2018-08-29 00:51:56 +03:00
Edward Diener
9be39a7ab5 Merge pull request #8 from mfontanini/cxx11_allocator_compliance
Cxx11 allocator compliance
2016-12-24 08:54:58 -05:00
Oliver Kowalke
7cdd314726 use std::mutex if available
if compiled for C++11 etc. use std::mutex. drawback of boost::mutex is that boost.thread depends on boost.system (requires linking against boost.system). boost.system is already part of C++11.
2016-02-27 20:43:54 +01:00
Nico Schlömer
817b691f6c improve guards around boost/thread/mutex.hpp
Fixes bug #7085 (https://svn.boost.org/trac/boost/ticket/7085).
2015-08-12 19:42:26 +02:00
Matias Fontanini
a80e56ceaf Add check for BOOST_HAS_RVALUE_REFS when using rvalue-refs. 2015-03-17 00:17:44 -07:00
Matias Fontanini
7031de34fa Use variadic templates on fast_pool_allocator::construct when using C++11. 2015-03-16 21:22:17 -07:00
Matias Fontanini
5eec444d96 Use variadic templates on pool_allocator::construct when using C++11. 2015-03-16 21:22:02 -07:00
Peter Dimov
de05d62aea Replace math::gcd,lcm with integer. 2015-01-15 19:05:08 +02:00
John Maddock
6ac72d21de Fix some more compiler warnings.
Add threading stress test.

[SVN r73193]
2011-07-17 17:56:58 +00:00
John Maddock
1cb917c9a7 Update docs to latest AutoIndex version.
Fix -Wshadow warnings and update Jamfile to make them errors.
Fix singleton_pool to correctly propagate the MaxSize parameter.
Refs #5700.
Refs #5568.

[SVN r73148]
2011-07-16 14:50:06 +00:00
John Maddock
c7b0d00943 Add some debugging code.
Add tentative Valgrind support.
Change singleton usage to address issue 5526 by making singletons eternal.
Add Valgrind tests.
Update docs to match.
Refs #5526.

[SVN r73121]
2011-07-15 17:40:49 +00:00
John Maddock
48398032be Change mutex to use Boost version.
Add example to test Jamfile.

[SVN r71204]
2011-04-12 16:15:14 +00:00
John Maddock
cd1134290c Remove unneeded files.
[SVN r71189]
2011-04-11 17:20:21 +00:00
John Maddock
9d2945f374 Change to Boost.Math gcd/lcm and fix tests to compile cleanly again!
[SVN r71188]
2011-04-11 17:19:16 +00:00
John Maddock
0174798a5e Update singleton_pool docs.
[SVN r70873]
2011-04-02 17:51:30 +00:00
John Maddock
d2ea3da0e2 Fix missing object_pool constructors.
Fix bad comment in pool.hpp.
Update simple_segregated_storage docs.

[SVN r70857]
2011-04-02 16:09:52 +00:00
John Maddock
2a6ad759cd Update docs for pool_alloc.hpp.
[SVN r70826]
2011-04-01 18:06:25 +00:00
John Maddock
6a68b4dcf5 Tidy up and expand the docs for pool.hpp.
[SVN r70819]
2011-04-01 14:45:44 +00:00
John Maddock
b81a49f04a Fix template param descriptions.
Cross reference docs.
Add concept docs.

[SVN r70813]
2011-04-01 11:11:25 +00:00
John Maddock
529c49918e Update reference docs for object_pool and suppress some macros from appearing in docs.
[SVN r70786]
2011-03-31 16:00:29 +00:00
John Maddock
ebdafbbb88 Add test for malloc/free macros.
[SVN r69529]
2011-03-03 18:54:28 +00:00
Paul A. Bristow
2cc048c0e6 Recommit (some new docs edits lost)
[SVN r69278]
2011-02-25 17:00:13 +00:00
Paul A. Bristow
1bcadfb626 More docs details added.
[SVN r69274]
2011-02-25 16:36:02 +00:00
John Maddock
6db4e1896a Some further more advanced fixes for issue #2696:
Applies existing fix to array allocation,
Adds a test case,
Adds a fallback mechanism, so that if allocation fails we shrink the next chunk size.
Refs #2696.


[SVN r69236]
2011-02-24 12:19:47 +00:00
John Maddock
7a37b780dc Fixes issue #1252.
Add test case for #1252.
Update docs accordingly.
Refs #1252.
Correct return value from test_pool_alloc.cpp.


[SVN r69235]
2011-02-24 10:25:39 +00:00
John Maddock
d6702122e0 Add test case for bug #4960.
Add conditional instrumentation code to headers so we can see what's being allocated when.
Fix issue #4960 by allowing pool to allocate 0 chunks.
Refs #4960.

[SVN r68920]
2011-02-15 18:39:07 +00:00
John Maddock
a9fbe74921 Rename *.inc file to *.ipp.
[SVN r68864]
2011-02-14 16:41:20 +00:00
Paul A. Bristow
86b252096a Tabs removed.
[SVN r68455]
2011-01-26 16:58:29 +00:00
Paul A. Bristow
918063b030 Added more Doxygen comments
[SVN r68238]
2011-01-18 18:15:06 +00:00
Paul A. Bristow
a60dc29adb Added more Doxygen comments
[SVN r68237]
2011-01-18 18:12:26 +00:00
Paul A. Bristow
980d067761 Added more Doxygen comments
[SVN r68236]
2011-01-18 18:11:42 +00:00
Paul A. Bristow
c0c0f4d972 Corrected doxygen comment.
[SVN r68229]
2011-01-18 14:10:15 +00:00
Paul A. Bristow
ff410c297e Changed .inc files to ipp and references to them.
Started to add doxygen comments to classes and functions.

[SVN r68067]
2011-01-12 18:40:40 +00:00
Marshall Clow
95d31b8281 Applying patch for bug 2696 to keep trunk and guild in sync
[SVN r67753]
2011-01-07 16:36:11 +00:00
Katie Chan
82ba292f21 Remove old commented out code leftover that has been around forever.
Remove comments re parameters that has been around since the first commit from 2001 being "extension".

[SVN r67686]
2011-01-05 18:55:41 +00:00
Katie Chan
3e1baa4a24 Fixes bug #3349. Add temporary test for bug.
[SVN r67676]
2011-01-05 09:00:14 +00:00
Steven Watanabe
df50a4065f Protect Boost.Pool from evil #defines of malloc and free. Fixes #4346.
[SVN r63009]
2010-06-16 02:27:17 +00:00
Steven Watanabe
dec9d0947d Use static_cast instead of reinterpret_cast. Fixes #2941
[SVN r62705]
2010-06-10 01:46:37 +00:00
Steven Watanabe
ecb238ede9 Allow zero-sized blocks to be allocated by malloc_n. Fixes #386
[SVN r56998]
2009-10-19 16:26:52 +00:00
Jeremiah Willcock
1c8389e618 Fixed most tab and min/max issues from trunk inspection report
[SVN r53141]
2009-05-20 19:19:00 +00:00
Chris Newbold
394b7b7798 Address ticket #1996: "void" template specialization for pool allocators.
[SVN r49031]
2008-09-29 20:25:28 +00:00
Chris Newbold
2ab6479e1e Fixes for tickets #2095 ("pool fails to compile with -fno-exceptions")
and #2359 ("Static initialization problems with
fast_pool_allocator"). Use boost::throw_exception. Explicitly
reference singleton_pool from allocator constructors to avoid troubles
due to unordered initializaiton of static data in class templates.



[SVN r49025]
2008-09-29 18:41:19 +00:00
Jurko Gospodnetić
7f87d3e79b Added a workaround for a compilation failure when including some Boost Serialization headers before some Boost Pool headers using MSVC 7.1 or 8.0. Source of the problem is a compiler bug fixed in MSVC 9.0 and workaround consists of referencing some Windows API identifiers using their fully qualified names. Added a related regression test for the Boost Pool library. See the test code comments for more detailed information on the bug.
[SVN r44480]
2008-04-17 00:20:33 +00:00
Marshall Clow
9e856dc35a Bug fixes #284, #836, #991
[SVN r41286]
2007-11-21 19:20:15 +00:00
Hartmut Kaiser
1735c5f258 Pool: Added detection of availability of pthreads using the BOOST_HAS_PTHREADS constant.
[SVN r39716]
2007-10-05 18:48:56 +00:00
Andreas Huber
3893e9eae8 Fixed license & copyright issues and converted to HTML 4.01
[SVN r36274]
2006-12-05 12:01:31 +00:00