Example #1
0
void js_gc_run()
{
    #ifdef JSOS
        uint16_t* vram = (uint16_t*)0xb8000;
        uint16_t indicator = vram[79];
        vram[79] = ' ' | (5 << 12);
    #endif
    current_mark_flag = !current_mark_flag;
    js_gc_mark();
    js_gc_sweep();
    #ifdef JSOS
        vram[79] = indicator;
    #endif
}
Example #2
0
File: gc.c Project: filp/jsos
void js_gc_run()
{    
    current_mark_flag = !current_mark_flag;
    js_gc_mark();
    js_gc_sweep();
}