MDX is a thread safe memory manager similar to the standard C library's malioc() and free(), except that it allows for some (or all) of the memory to be automatically freed by mark and sweep garbage collection with finalization. It's written in C++ under the Apache license for Windows and Linux on 32 & 64 bit systems.

Programs using MDX provide it with a marking callback. The callback performs the marking phase of garbage collection, using MDX's mark() method to actually mark the wanted memory blocks. Finalization is similarly accomplished by callback. The rest of the garbage collection process is managed automatically by MDX.

The novel approach of allowing finalization to explicitly free memory offers the potential for improving garbage collection performance. This is achieved by moving some work from being done repetitively during every marking cycle, to being done once only when the memory's freed.

See the project web site at the link below for more information.

Features

  • Small & easy to use API based on malloc() & free() plus extensions.
  • Thread safe.
  • Garbage collection with finalization.
  • Dynamicly self-adjusts garbage collection threshold to program memory usage.
  • Marking and finalization by callback.
  • Can allocate collectible and non-collectible memory at the same time.
  • Speeds up marking by letting finalization explicitly free memory.
  • Memory's allocated from multiple independent pools.
  • Delete pool acts as a grand clear, freeing all memory still allocated.
  • malloc() & free() performance comparable to C standard library.
  • Uses thread caches to scale with thread count.
  • Could be made language independent with simple C API jackets.

Project Activity

See All Activity >

License

Apache License V2.0

Follow Memory Manager: MDX

Memory Manager: MDX Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Memory Manager: MDX!

Additional Project Details

Operating Systems

Linux, Windows

Intended Audience

Information Technology, Developers

Programming Language

C++

Related Categories

C++ Software Development Software, C++ Libraries

Registered

2012-04-02