Giter Club home page Giter Club logo

gcmalloc's Introduction

GCmalloc

Pseudo ramasse-miette (garbage collector)

les fonctions:

  • *get_new_obj(int size, int id);
  • *resize_obj(void *oldobj, int new_size);
  • *get_new_obj_set(int size, int id);
  • obj_mem_set(void *obj);
  • free_exept_obj(void *obj);
  • free_by_id(int id);
  • free_me_all();
  • free_me_all_secure();

Description:

  • get_new_obj() alloue size octets, et renvoie un pointeur sur la mémoire allouée.
  • resize_obj() modifie la taille du bloc de mémoire pointé par oldobj pour l'amener à une taille de new_size octets. Renvoie un pointeur sur la mémoire allouée.
  • get_new_obj_set() alloue size octets, et renvoie un pointeur sur la mémoire allouée. Cette zone est remplie avec des zéros.
  • obj_mem_set() remplie la zone de memoire pointer par obj avec des zéros.
  • free_exept_obj() libère l'espace mémoire pointé par obj.
  • free_by_id() libère l'espace mémoire de toute les pointeurs qui on pour id id.
  • free_me_all() libère tout les allocations memoires faites par get_new_obj(), get_new_obj_set() ou resize_obj().
  • free_me_all_secure() meme chose que free_me_all mais remplie la zone de zeros avant de libèrer la memoire.

gcmalloc's People

Contributors

alexandrel avatar

Stargazers

Roman avatar

Watchers

 avatar  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.