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
402d46c0
Commit
402d46c0
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
typo
parent
369b29be
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/purify.lisp
+2
-12
2 additions, 12 deletions
code/purify.lisp
with
2 additions
and
12 deletions
code/purify.lisp
+
2
−
12
View file @
402d46c0
...
@@ -10,20 +10,10 @@
...
@@ -10,20 +10,10 @@
;;; Storage purifier for Spice Lisp.
;;; Storage purifier for Spice Lisp.
;;; Written by Rob MacLachlan and Skef Wholey.
;;; Written by Rob MacLachlan and Skef Wholey.
;;;
;;;
;;; The function Purify, defined herein, puts as much of the Lisp system as
;;; Rewritten in C by William Lott.
;;; possible into Read-Only and Static spaces so that subsequent garbage
;;; collections are quicker. This is done by frobbing the free-pointers for
;;; spaces so that new objects are put in static or read-only space as
;;; appropiate, then doing a GC.
;;;
;;; We also transport all of the dynamic symbols in Lisp code so we
;;; can do clever things that improve locality in the resulting Lisp.
;;; Some constant conses and g-vectors are also transported in macrocode
;;; so that we can put them in read-only space.
;;;
;;;
(
in-package
'lisp
)
(
in-package
'lisp
)
(
def-c-routine
(
"purify"
%purify
)
(
void
)
(
def-c-routine
(
"purify"
%purify
)
(
void
)
(
static-roots
unsigned-long
)
(
static-roots
unsigned-long
)
(
read-only-roots
unsigned-long
))
(
read-only-roots
unsigned-long
))
...
@@ -36,7 +26,7 @@
...
@@ -36,7 +26,7 @@
(
%purify
(
di::get-lisp-obj-address
root-structures
)
(
%purify
(
di::get-lisp-obj-address
root-structures
)
(
di::get-lisp-obj-address
constants
))
(
di::get-lisp-obj-address
constants
))
(
when
*gc-trigger*
(
when
*gc-trigger*
(
setf
*gc-trigger*
*bytes-coned-between-gcs*
)
(
setf
*gc-trigger*
*bytes-con
s
ed-between-gcs*
)
(
set-auto-gc-trigger
*gc-trigger*
)))
(
set-auto-gc-trigger
*gc-trigger*
)))
(
write-line
"Done.]"
)
(
write-line
"Done.]"
)
(
force-output
)
(
force-output
)
...
...
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