Commit 7277e2ac authored by Hugo's avatar Hugo
Browse files

partie2 valide

parent d82de784
......@@ -46,7 +46,7 @@ emalloc_small(unsigned long size)
}
}
// allocation taille small
arena.chunkpool+=CHUNKSIZE;
arena.chunkpool=(void*)(*(uint64_t*)(arena.chunkpool));
void* ptr = mark_memarea_and_get_user_ptr(arena.chunkpool-CHUNKSIZE,size+32,SMALL_KIND);
return ptr;//renvoie le resultat obtenu par la fonction de marquage
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment