D with minimal runtime
Johannes Pfau
nospam at example.com
Thu Jun 18 07:13:31 UTC 2020
Am Wed, 17 Jun 2020 11:06:26 +0200 schrieb Jacob Carlborg:
> What about the TLS data, isn't that used for the GC? This data is
> retrieved eagerly when a new thread is started. But since you'll always
> have at least one thread the data will always be retrieved?
TLS memory is scanned by the GC, but it is managed / freed by the C
library when a thread is stopped. Similar for static memory, which is as
far as I know never freed. So as long as you don't have any heap memory,
there's really no GC work to do.
--
Johannes
More information about the Digitalmars-d
mailing list