我一直在使用保存运行Common Lisp映像来节省重启时间,提高开发效率.但是,当我在Emacs / SLIME中运行以下命令时,我遇到了一些问题:
(sb-ext:save-lisp-and-die "rest-api-image" :purify t)
我收到以下错误.显然,它抱怨看到多个线程.据我所知,这些不是我以编程方式创建的线程.相反,这些是Lisp-和Emacs创建的.这里有解决方法吗?图像仍然可以保存吗?
Cannot save core with multiple threads running. Interactive thread (of current session): #<THREAD "main thread" RUNNING {1000550853}> Other threads: #<THREAD "Swank Sentinel" #1=waiting on: #<WAITQUEUE {1004AB8003}> {1004AB4753}>,#<THREAD "control-thread" #1# #<WAITQUEUE {1005BC54D3}> {1004D87F03}>,#<THREAD "reader-thread" RUNNING {1004D88063}>,#<THREAD "swank-indentation-cache-thread" #1# #<WAITQUEUE {1004D980E3}> {1004D88183}>,#<THREAD "auto-flush-thread" RUNNING {10022FFDA3}>,#<THREAD "repl-thread" RUNNING {1002300003}> [Condition of type SB-IMPL::SAVE-WITH-MULTIPLE-THREADS-ERROR] See also: SBCL Manual,Saving a Core Image [:node]