Click here to Skip to main content
14,491,885 members

Robust C++: Object Pools

Rate this:
4.79 (7 votes)
Please Sign up or sign in to vote.
4.79 (7 votes)
11 Feb 2020GPL3
Recovering from memory leaks
When a system runs for a long time, using a shared heap can eventually result in a crash because of gradual fragmentation and memory leaks. By allocating objects from pools of fixed-size blocks, a system can limit fragmentation and use a background garbage collector to recover leaked blocks. This article presents an ObjectPool class that provides these capabilities.

Revisions


  

Compare Revision Minor Date Status Editor
14 - publicly available Yes 11-Feb-20 10:53 Available Greg Utas
The article has been approved
13 Yes 11-Feb-20 10:45 Pending Greg Utas
Setting the thumbnail.
12 Yes 11-Feb-20 6:20 Available Greg Utas
The article has been approved
11 Yes 11-Feb-20 5:33 Pending Greg Utas
Provide abstract and make minor changes.
10 Yes 3-Jan-20 7:26 Available Sean Ewington
Updates in content.
9 Yes 3-Jan-20 6:44 Pending Greg Utas
Minor changes.
8 Yes 23-Dec-19 14:18 Available Greg Utas
The article has been approved
7 Yes 23-Dec-19 11:56 Pending Greg Utas
Minor changes.
6 Yes 22-Sep-19 20:50 Available Greg Utas
The article has been approved
5 Yes 22-Sep-19 10:21 Pending Greg Utas
Add a tag to support a hyperlink.
4 Yes 6-Sep-19 8:08 Available Deeksha Shenoy
Updates in content. Changes: 5
3 Yes 3-Sep-19 4:11 Available Greg Utas
The article has been approved
2 No 3-Sep-19 4:11 Available Greg Utas
Updates in content.
1 No 3-Sep-19 3:46 Pending Greg Utas
Updates in content. Changes: 16977

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)

Share

About the Author

Greg Utas
Architect
Canada Canada
Author of Robust Services Core (GitHub) and Robust Communications Software (Wiley, 2005). Formerly Chief Software Architect of the servers (GSM MSCs) that handle the calls in AT&T's wireless network.

Comments and Discussions

Stats

13.3K views
11 bookmarked