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
a2b0152b
Commit
a2b0152b
authored
31 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Move environment compacting to PURIFY. Avoid spurious purifies.
parent
6bf5948e
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
tools/worldload.lisp
+14
-46
14 additions, 46 deletions
tools/worldload.lisp
with
14 additions
and
46 deletions
tools/worldload.lisp
+
14
−
46
View file @
a2b0152b
...
...
@@ -6,7 +6,7 @@
;;; If you want to use this code or any part of CMU Common Lisp, please contact
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/tools/worldload.lisp,v 1.7
4
1994/02/1
2
1
4:24:24
ram Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/tools/worldload.lisp,v 1.7
5
1994/02/1
4
1
3:16:30
ram Exp $
;;;
;;; **********************************************************************
;;;
...
...
@@ -107,50 +107,25 @@
(
maybe-byte-load
"target:code/filesys"
nil
)
(
maybe-byte-load
"target:code/macros"
nil
))
(
defvar
*old-ie*
)
(
setq
*old-ie*
(
car
*info-environment*
))
(
setq
*info-environment*
(
list*
(
make-info-environment
)
(
compact-info-environment
(
first
*info-environment*
)
:name
"Kernel"
)
(
rest
*info-environment*
)))
(
lisp::shrink-vector
(
c::volatile-info-env-table
*old-ie*
)
0
)
(
setq
*old-ie*
nil
)
(
purify
:root-structures
`
(
lisp::%top-level
extensions:save-lisp
,
lisp::fop-codes
))
`
(
lisp::%top-level
extensions:save-lisp
,
lisp::fop-codes
)
:environment-name
"Kernel"
)
;;; Load the compiler.
#-
(
or
no-compiler
runtime
)
(
progn
(
maybe-byte-load
"c:loadcom.lisp"
)
(
setq
*old-ie*
(
car
*info-environment*
))
(
setq
*info-environment*
(
list*
(
make-info-environment
)
(
compact-info-environment
(
first
*info-environment*
)
:name
"Compiler"
)
(
rest
*info-environment*
)))
(
lisp::shrink-vector
(
c::volatile-info-env-table
*old-ie*
)
0
)
(
purify
:root-structures
'
(
compile-file
)
:environment-name
"Compiler"
)
(
maybe-byte-load
"c:loadbackend.lisp"
)
;; If we want a small core, blow away the meta-compile time VOP info.
#+
small
(
setf
(
c::backend-parsed-vops
c:*backend*
)
(
make-hash-table
:test
#'
eq
))
(
setq
*old-ie*
(
car
*info-environment*
))
(
setq
*info-environment*
(
list*
(
make-info-environment
)
(
compact-info-environment
(
first
*info-environment*
)
:name
(
concatenate
'string
(
c:backend-name
c:*backend*
)
" backend"
))
(
rest
*info-environment*
)))
(
lisp::shrink-vector
(
c::volatile-info-env-table
*old-ie*
)
0
)
(
setq
*old-ie*
nil
))
(
purify
:root-structures
'
(
compile-file
))
)
(
purify
:root-structures
(
list
c:*backend*
)
:environment-name
(
concatenate
'string
(
c:backend-name
c:*backend*
)
" backend"
)))
;;; CLX.
;;;
...
...
@@ -184,16 +159,6 @@
(
setf
(
search-list
"modules:"
)
'
(
"./"
))
(
setf
(
search-list
"target:"
)
*target-sl*
)
;; set up the initial info environment.
(
setq
*old-ie*
(
car
*info-environment*
))
(
setq
*info-environment*
(
list*
(
make-info-environment
:name
"Working"
)
(
compact-info-environment
(
first
*info-environment*
)
:name
"Auxiliary"
)
(
rest
*info-environment*
)))
(
lisp::shrink-vector
(
c::volatile-info-env-table
*old-ie*
)
0
)
(
setq
*old-ie*
nil
)
;;; Okay, build the thing!
;;;
(
progn
...
...
@@ -217,6 +182,9 @@
#-
gengc
(
setf
*need-to-collect-garbage*
nil
)
#-
gengc
(
gc-on
)
;;
;; Save the lisp.
(
save-lisp
"lisp.core"
:root-structures
`
(
ed
#-
(
or
runtime
no-hemlock
)
,
hi::*global-command-table*
)))
;; Save the lisp. If RUNTIME, there is nothing new to purify, so don't.
(
save-lisp
"lisp.core"
:root-structures
#-
(
or
runtime
no-hemlock
)
`
(
ed
,
hi::*global-command-table*
)
#+
(
or
runtime
no-hemlock
)
()
:purify
#+
runtime
nil
#-
runtime
t
))
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