Git Product home page Git Product logo

arena_allocators's Introduction

Allocators

This project attempts to implement some small allocators designed with simplicity in mind.

The project utilizes a naive approach on the internal memory handling and expands on the on-top data structures.

Features

  • Error handling is implemented via a custom jump handler that is implemented with the ucontext library.

    • Keep in mind that the error handler is compiler specific, meaning that it is supported on all architectures and the compiler supports the GNU C Extensions
  • Concurrency is supported, all the on-top allocators are implemented with semaphores in order to ensure that there are no data races.

Current allocators implemented

  • A hash trie that utilizes an internal arena
    • Supports fast inserting and lazy deletion
    • Reduced fragmentation
    • Memory locality
    • Scalability
  • A probing map thata utilizes open addressing with linear probing
    • Inherits the same characteristics as the trie allocator
    • There is a bug on the semaphore that locks upon insert and causes a segfault, needs to be investigated

Keep in mind that this is not a production library and it far away from becoming one yet

Bugs

  • The probing map works the majority of times but quite rarely the semaphore causes a seg fault, needs to be investigated
  • Possible bug with stack allocation on pthread_create, needs investigation

Feel free to contribute!

arena_allocators's People

Contributors

xyderos avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.