Skip to main content

1991 | ReviewPaper | Buchkapitel

A fast garbage collection algorithm for WAM — based PROLOG

verfasst von : Igor Đurđanović

Erschienen in: Computer Science Logic

Verlag: Springer Berlin Heidelberg

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Garbage collection for Warren abstract machine is complicated by:•three semantically distinct types of pointers, whose types must be preserved as well as their relative positions;•need for marking used atomic values because of TRAIL compactification;•capability of structures to grow incrementally, i.e. in the wrong direction.Prolog data graphs (DAGs, circular structures would interrput the present algorithm) are represented as linear structures by an invertible pointer reversing transform. Reversal of forward pointers is delayed till needed, so that the algorithm can manage with one pass through the workspace. The technique of delayed reversal enables compactification of (two or more) physically separated memory areas which point at each other.If the workspace contains n used words k of which are active, the complexity of the algorithm is #x03B1; n + β k + OVERHEAD, where OVERHEAD depends on the structure of active data graphs involved.

Metadaten
Titel
A fast garbage collection algorithm for WAM — based PROLOG
verfasst von
Igor Đurđanović
Copyright-Jahr
1991
Verlag
Springer Berlin Heidelberg
DOI
https://doi.org/10.1007/3-540-54487-9_55

Premium Partner