#4 Context destructor

Avoinna
4 päivää sitten avasi Archivist · 0 kommenttia

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 päivää sitten
Archivist itse otti tämän käsittelyyn 4 päivää sitten
Sign in to join this conversation.
Ei merkkipaalua
Ei käsittelijää
1 osallistujaa
Ilmoitukset
Määräpäivä

Määräpäivää ei asetettu.

Riippuvuudet

This issue currently doesn't have any dependencies.

Ladataan…
Sisältöä ei vielä ole.