Skip to content
Tcl Source Code Update of ”Preservation”
Login

Update of ”Preservation”

Overview

Artifact ID: 94fedf404588e07289ff5b6e459e583ee72c2943
Page Name:Preservation
Date: 2014-08-28 17:51:43
Original User: dgp
Parent: 4574715a145f2c24b0a58caa6c81835a2f2c1d64 (diff)
Next 19178cc41cb950d7c74ebe8d94a1a7bd56602c16
Content

Source Files

Public Routines

Private Routines

Directly Depends On Public Routines From

Directly Depends On Private Routines From

Discussion

This module provides a solution to the important problem of managing shared interest in allocated memory.

Use of mutexes is needed to be safe for general use, but harms performance.

Implementation as a linear scan suggests the solution does not scale well at all. An effort to examine alternatives was made in novem-ak-preserve-experiments.

Wherever thread isolation and refcounting can be employed instead, they probably ought to be.

Completely different approaches such as some kind of garbage collection scheme might also avoid the drawbacks here.

The private export TclFinalizePreserve is needed so that finalization of these facilities can be delayed past all the users of them.

The TclHandle* set of routines seems to be an alternative set of tools for the same problem that has not caught on among the internals for unknown reasons and has never been exported either.