开发者

Garbage collector in Common lisp?

开发者 https://www.devze.com 2023-02-10 15:11 出处:网络
Is SBCL or CMUCL garbage collector available in Lisp imp开发者_运维知识库lementation?SBCL exposes some of its GC functionality: http://john.freml.in/sbcl-optimise-gcBoth of them provide garbage collec

Is SBCL or CMUCL garbage collector available in Lisp imp开发者_运维知识库lementation?


SBCL exposes some of its GC functionality: http://john.freml.in/sbcl-optimise-gc


Both of them provide garbage collection.

See this for CMUCL and this for SBCL.

Quote from Wikipedia:

Garbage collection was invented by John McCarthy around 1959 to solve problems in Lisp.

Every Common Lisp implementation, must have garbage collection defined, since any standard implementation must comply to Common Lisp ANSI standard.


Both of them have GC available. Like with any conformant Common Lisp implementation, you can do (gc :full t) to instruct garbage collector to collect all your unreachable objects.

0

精彩评论

暂无评论...
验证码 换一张
取 消