#4 Context destructor

Öppen
öppnade 4 dagar sedan av Archivist · 0 kommentarer
Archivist kommenterad 4 dagar sedan

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 lade till etiketten
bug
4 dagar sedan
Archivist tilldelade denna till sig själv 4 dagar sedan
Logga in för att delta i denna konversation.
Ingen Milsten
Ingen tilldelad
1 Deltagare
Notiser
Förfallodatum

Inget förfallodatum satt.

Beroenden

Det här ärendet har för närvarande inga beroenden.

Laddar…
Det finns inget innehåll än.