Git Product home page Git Product logo

brewlin / garbage-collect Goto Github PK

View Code? Open in Web Editor NEW
29.0 1.0 5.0 370 KB

garbage collector algorithm 垃圾回收算法的系列实现

Home Page: https://wiki.brewlin.com/wiki/algorithm/gc-learning/GC%E7%AE%97%E6%B3%95%E5%88%86%E6%9E%90%E4%B8%8E%E5%AE%9E%E7%8E%B0/

License: MIT License

C 98.45% Makefile 0.60% Shell 0.14% Assembly 0.47% CMake 0.34%
compact gc garbage-collection mark-sweep copying generational reference-counting tri-color-marking golang-gc

garbage-collect's Introduction

gc-learning

GitHub GitHub code size in bytes

垃圾回收算法的分析与实现,基于c实现各系列gc docs:分析文档

在编程语言中引入gc的例子:tu-lang

> dos2unix auto_test.sh
> sh auto_test.sh

@demo

#include "gc.h"

Obj* p = gc_malloc(sizeof(Obj));
// don't need care the `free`,let it go

@analysis

  • python的gc实现
  • golang的gc实现
    • 内存分配
    • 标记+清除
    • 并发gc实现
  • 实现一个可生产应用的gc

@mark-sweep

  • 标记清除算法-基础实现
  • 标记清除算法-多链表法实现
  • 标记清除算法-位图式

@reference-count

  • 引用计数算法

@copying

  • 复制算法-基础实现
  • 复制算法+标记清除-组合应用实现

@compact

  • 压缩算法-lisp2算法
  • 压缩算法-two_finger

@generational

  • 分代算法-复制+标记清除

@incremental

  • 增量式算法-三色标记

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.