#4 Context destructor

Aperto
aperto 4 giorni fa da Archivist · 0 commenti
Archivist 4 giorni fa ha commentato

Create a way to destroy the conterxt from C while ensuring the complete cleanup of every element.

Syntax

From C:

struct context* ctx = ink_make_deafult_context();

ink_destroy_context(ctx);

Proposed implementation

Clearing every coroutine manually, then clearing every word (due to #2), then running the GC should get rid of every reference still stored into the engine. We can then deallocate every remaining stack.

Create a way to destroy the conterxt from C while ensuring the complete cleanup of every element. ## Syntax From C: ```c struct context* ctx = ink_make_deafult_context(); ink_destroy_context(ctx); ``` ## Proposed implementation Clearing every coroutine manually, then clearing every `word` (due to #2), then running the GC should get rid of every reference still stored into the engine. We can then deallocate every remaining stack.
Archivist added the
bug
label 4 giorni fa
Archivist 4 giorni fa auto-assegnato
Effettua l'accesso per partecipare alla conversazione.
Nessuna milestone
Nessuna assegnatario
1 Partecipanti
Notifiche
Data di scadenza

Nessuna data di scadenza impostata.

Dipendenze

Questo problema attualmente non ha alcuna dipendenza.

Caricamento…
Non ci sono ancora contenuti.