Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
4ec5f783
Commit
4ec5f783
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Added :constants argument to save-lisp. It gets passed on to purify.
parent
d9b236d0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/save.lisp
+8
-5
8 additions, 5 deletions
code/save.lisp
with
8 additions
and
5 deletions
code/save.lisp
+
8
−
5
View file @
4ec5f783
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/save.lisp,v 1.
2
1990/0
8
/2
4 18:13:22
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/save.lisp,v 1.
3
1990/0
9
/2
7 02:24:19
wlott Exp $
;;;
;;;
;;; Dump the current lisp image into a core file. All the real work is done
;;; Dump the current lisp image into a core file. All the real work is done
;;; be C.
;;; be C.
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
(
defun
save-lisp
(
core-file-name
&key
(
defun
save-lisp
(
core-file-name
&key
(
purify
t
)
(
purify
t
)
(
root-structures
())
(
root-structures
())
(
constants
nil
)
(
init-function
(
init-function
#'
(
lambda
()
#'
(
lambda
()
(
throw
'top-level-catcher
nil
)))
(
throw
'top-level-catcher
nil
)))
...
@@ -68,9 +69,11 @@
...
@@ -68,9 +69,11 @@
less often and take less time in the resulting core file.
less often and take less time in the resulting core file.
:root-structures
:root-structures
This should be a list of the main entry points in any newly loaded
:constants
systems. This need not be supplied, but locality will be better if it
These should be a list of the main entry points in any newly loaded
is. This is meaningless if :purify is Nil.
systems and a list of any large data structures that will never again
be changed. These need not be supplied, but locality and/or GC performance
will be better if they are. They are meaningless if :purify is NIL.
:init-function
:init-function
This is a function which is called when the created core file is
This is a function which is called when the created core file is
...
@@ -86,7 +89,7 @@
...
@@ -86,7 +89,7 @@
If true, print out the lisp system herald when starting."
If true, print out the lisp system herald when starting."
(
if
purify
(
if
purify
(
purify
:root-structures
root-structures
)
(
purify
:root-structures
root-structures
:constants
constants
)
(
gc
))
(
gc
))
(
unless
(
save
(
namestring
core-file-name
))
(
unless
(
save
(
namestring
core-file-name
))
(
dolist
(
f
*before-save-initializations*
)
(
funcall
f
))
(
dolist
(
f
*before-save-initializations*
)
(
funcall
f
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment