[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chicken git egg: bug & patch

From: megane
Subject: Re: Chicken git egg: bug & patch
Date: Mon, 14 Jun 2021 08:10:06 +0300
User-agent: mu4e 1.0; emacs 28.0.50

Kristian Lein-Mathisen <> writes:

> From what I gather, there is no way to allocate memory and return a pointer
> to it, safely, in CHICKEN.
> Won't the garbage collector potentially overwrite whatever region was
> allocated since it has no way of knowing it?

There's allocate from chicken.memory that does just that. It allocates
using 'malloc', and chicken GC will have no knowledge or way of
interfering with the memory. Free the memory using 'free' from the same

reply via email to

[Prev in Thread] Current Thread [Next in Thread]