x86-64: micro-optimize LEA DWORD-REG,EA
[sbcl.git] / doc / internals-notes / threading-specials
1
2 Things in SBCL that look like special variables (list created by
3 (apropos "*")) and could conceivably indicate potental thread safety
4 issues.  Organised by functional area.
5
6 The goals are
7
8         (1) classify the unclassified symbols (in such a way as to
9         make sense for 2)
10         
11         (2) read through the subsystems identified looking for places
12         where global state is mutated.  Use this list of symbols as a
13         guide, but be open to the possibility that other state 
14         (e.g. closures, foreign variables) is touched too.
15
16         When looking at a particular symbol, please annotate it in
17         this file when you figure out what it's for and how it's
18         changed. To give us some confidence that we have reasonable
19         coverage, please don't just delete it if it looks ok. Symbols
20         shoud only be deleted here if they're obviously not specials
21         at all (e.g. functions with * in their names), or if the same
22         commit actually rids SBCL of the symbol itself. Otherwise,
23         just add a comment saying "read-only" or "unused" or whatever.
24
25         (3) anything else that comes to mind as potential trouble
26         spots.  Global state in closures, etc etc
27             
28         (4) suggest strategies (e.g. rewrites of affected code, suitable
29         locks and lock acquisition/release places) to fix the issues
30         revealed in (2) and (3)
31         
32         (5) implement same
33
34         Candidates may attempt any of the above simultaneously.
35         Points will be awarded for style
36
37
38 Summary so far:
39
40 = loop
41 = PCL            (probably ok if PCL authors did *without-interrupts* right)
42 = debugger
43 = profiler
44 = disassembler
45 = assembler       (I assume protected by *big-compiler-lock*)
46 = unix interface  (apparently ok)
47 = toplevel/environment stuff
48 = the formatter & pretty printer  (two vars need checking)
49 = compiler        (protected by *big-compiler-lock*) 
50 = fasloader       (protected by *big-compiler-lock*) 
51 = runtime stuff - gc, control stacks, interrupts etc
52 = backend constants 
53 = dead
54 = unclassified
55
56 ==================
57
58 = loop
59
60 I suspect that stuff in sb-loop is only ever frobbed at
61 macroexpand/compile time anyway, so covered by *big-compiler-lock*.
62 Haven't thought about this too hard, though
63
64 SB-LOOP::*LOOP-PROLOGUE*
65 SB-LOOP::*LOOP-SOURCE-CODE*
66 SB-LOOP::*LOOP-MINIMAX-TYPE-INFINITIES-ALIST* 
67 SB-LOOP::*LOOP-NAMES*
68 SB-LOOP::*LOOP-BODY*
69 SB-LOOP::*LOOP-AFTER-BODY*
70 SB-LOOP::*LOOP-DESETQ-CROCKS*
71 SB-LOOP::*LOOP-EPILOGUE*
72 SB-LOOP::*LOOP-EMITTED-BODY*
73 SB-LOOP::*LOOP-NEVER-STEPPED-VAR*
74 SB-LOOP::*LOOP-NAMED-VARS*
75 SB-LOOP::*LOOP-ITERATION-VARS*
76 SB-LOOP::*LOOP-WHEN-IT-VAR*
77 SB-LOOP::*LOOP-BEFORE-LOOP*
78 SB-LOOP::*ESTIMATE-CODE-SIZE-PUNT* 
79 SB-LOOP::*LOOP-WRAPPERS*
80 SB-LOOP::*LOOP-DESETQ-TEMPORARY* 
81 SB-LOOP::*LOOP-MACRO-ENVIRONMENT*
82 SB-LOOP::*LOOP-VARS*
83 SB-LOOP::*IGNORES*
84 SB-LOOP::*LOOP-SOURCE-CONTEXT*
85 SB-LOOP::*LOOP-AFTER-EPILOGUE*
86 SB-LOOP::*LOOP-DECLARATIONS*
87 SB-LOOP::*LOOP-FINAL-VALUE-CULPRIT*
88 SB-LOOP::*LOOP-COLLECTION-CRUFT*
89 SB-LOOP::*SPECIAL-CODE-SIZES* 
90 SB-LOOP::*LOOP-UNIVERSE*
91 SB-LOOP::*LOOP-DUPLICATE-CODE* 
92 SB-LOOP::*LOOP-INSIDE-CONDITIONAL*
93 SB-LOOP::*LOOP-ORIGINAL-SOURCE-CODE*
94 SB-LOOP::*LOOP-ITERATION-FLAG-VAR* 
95 SB-LOOP::*LOOP-ANSI-UNIVERSE* 
96 SB-LOOP::*LOOP-BIND-STACK*
97
98 = PCL
99
100 Critical parts of PCL are protected by *world-lock* (particularly
101 those dealing with class graph changes), and some with finer-grained locks.
102
103 accesses locked with a nice granularity
104    SB-PCL::*CLASSOID-CELLS*
105
106 read-only & safe:
107    SB-PCL::*BUILT-IN-TYPEP-COST* 
108    SB-PCL::*CACHE-EXPAND-THRESHOLD* 
109    SB-PCL::*CACHE-LOOKUP-COST* 
110    SB-PCL::*CASE-TABLE-LIMIT* 
111    SB-PCL::*CHECK-CACHE-P* 
112    SB-PCL::*COMPUTE-STD-CPL-CLASS->ENTRY-TABLE-SIZE* 
113    SB-PCL::*EQ-CASE-TABLE-LIMIT* 
114    SB-PCL::*NON-BUILT-IN-TYPEP-COST* 
115    SB-PCL::*NON-VAR-DECLARATIONS* 
116    SB-PCL::*SECONDARY-DFUN-CALL-COST* 
117    SB-PCL::*SGF-WRAPPER* 
118    SB-PCL::*STRUCTURE-TYPEP-COST*
119    SB-PCL::*UNSPECIFIC-ARG* 
120    SB-PCL::*VAR-DECLARATIONS-WITH-ARG* 
121    SB-PCL::*WRAPPER-OF-COST* 
122
123 bound & safe:
124    SB-PCL::*ALLOW-FORWARD-REFERENCED-CLASSES-IN-CPL-P* 
125    SB-PCL::*IN-OBSOLETE-INSTANCE-TRAP* 
126    SB-PCL::*PRECOMPILING-LAP* 
127    SB-PCL::*CACHE-MISS-VALUES-STACK* 
128
129 protected by PCL-LOCK:
130    SB-PCL::*PREVIOUS-NWRAPPERS* 
131
132 believed protected by the compiler-lock:
133    SB-PCL::*ALL-CTORS* 
134    SB-PCL::*FGENS* 
135    SB-PCL::*SGF-DFUN-STATE-INDEX* 
136    SB-PCL::*VAR-DECLARATIONS-WITHOUT-ARG* 
137
138 potentially unsafe:
139    SB-PCL::*CLASS-EQ-SPECIALIZER-METHODS* 
140    SB-PCL::*EFFECTIVE-METHOD-CACHE* 
141    SB-PCL::*EQL-SPECIALIZER-METHODS* 
142    SB-PCL::*METHOD-FUNCTION-PLIST* 
143    SB-PCL::*PV-KEY-TO-PV-TABLE-TABLE* 
144    SB-PCL::*PV-TABLE-CACHE-UPDATE-INFO* 
145    SB-PCL::*PVS* 
146    SB-PCL::*SLOT-NAME-LISTS-INNER* 
147    SB-PCL::*SLOT-NAME-LISTS-OUTER* 
148
149 debugging / profiling -- low relevance:
150    SB-PCL::*DFUN-COUNT* 
151    SB-PCL::*ALLOW-EMF-CALL-TRACING-P* 
152
153 build-options and bootstrap machinery -- irrelevant for user-code:
154    SB-PCL::*ALLOW-EXPERIMENTAL-SPECIALIZERS-P* 
155    SB-PCL::*BOOT-STATE* ; pseudoconstant in finished lisp (not in bootstrap)
156    SB-PCL::*BUILT-IN-CLASS-SYMBOLS* 
157    SB-PCL::*BUILT-IN-CLASSES* 
158    SB-PCL::*BUILT-IN-WRAPPER-SYMBOLS* 
159    SB-PCL::*CHECKING-OR-CACHING-LIST* 
160
161 ;;; global, frobbed on generic function
162 ;;; initialization/reinitialization, method precomputation, and
163 ;;; compute-effective-method.  Potentially unsafe, may be OK because
164 ;;; of *pcl-lock*, but could easily be liable to races.
165
166 SB-PCL::*CONDITION-SETF-SLOT-VALUE-USING-CLASS-METHOD* 
167 SB-PCL::*CONDITION-SLOT-BOUNDP-USING-CLASS-METHOD* 
168 SB-PCL::*CONDITION-SLOT-VALUE-USING-CLASS-METHOD* 
169 SB-PCL::*CREATE-CLASSES-FROM-INTERNAL-STRUCTURE-DEFINITIONS-P* 
170 SB-PCL::*DFUN-ARG-SYMBOLS* 
171 SB-PCL::*DFUN-CONSTRUCTORS* 
172 SB-PCL::*DFUN-LIST* 
173 SB-PCL::*DFUN-MISS-GFS-ON-STACK* 
174 SB-PCL::*EARLY-CLASS-DEFINITIONS* 
175 SB-PCL::*EARLY-CLASS-PREDICATES* 
176 SB-PCL::*EARLY-CLASS-SLOTS* 
177 SB-PCL::*EARLY-P* 
178 SB-PCL::*EMF-CALL-TRACE* 
179 SB-PCL::*EMF-CALL-TRACE-INDEX* 
180 SB-PCL::*EMF-CALL-TRACE-SIZE* 
181 SB-PCL::*EMIT-FUNCTION-P* 
182 SB-PCL::*ENABLE-DFUN-CONSTRUCTOR-CACHING* 
183 SB-PCL::*ENABLE-EMF-CALL-TRACING-P* 
184 SB-PCL::*EQL-SPECIALIZER-TABLE* 
185 SB-PCL::*GLOBAL-EFFECTIVE-METHOD-GENSYMS* 
186 SB-PCL::*IN-GF-ARG-INFO-P* 
187 SB-PCL::*IN-PRECOMPUTE-EFFECTIVE-METHODS-P* 
188 SB-PCL::*INITFUNCTIONS-FOR-THIS-DEFCLASS*
189 SB-PCL::*INTERNAL-PCL-GENERALIZED-FUN-NAME-SYMBOLS* 
190 SB-PCL::*LAZY-DFUN-COMPUTE-P* 
191 SB-PCL::*LONG-METHOD-COMBINATION-FUNCTIONS* 
192 SB-PCL::*MINIMUM-CACHE-SIZE-TO-LIST*
193 SB-PCL::*NAME->CLASS->SLOTD-TABLE* 
194 SB-PCL::*NEW-CLASS* 
195 SB-PCL::*NORMALIZE-TYPE 
196 SB-PCL::*NOT-IN-CACHE* 
197 SB-PCL::*OLD-C-A-M-GF-METHODS* 
198 SB-PCL::*OPTIMIZE-CACHE-FUNCTIONS-P* 
199 SB-PCL::*OPTIMIZE-SPEED* 
200 SB-PCL::*PCL-CLASS-BOOT* 
201 SB-PCL::*PCL-LOCK*                         ; protecting the rest
202 SB-PCL::*PCL-PACKAGE* 
203 SB-PCL::*RAISE-METATYPES-TO-CLASS-P* 
204 SB-PCL::*READERS-FOR-THIS-DEFCLASS*
205 SB-PCL::*REBOUND-EFFECTIVE-METHOD-GENSYMS*
206 SB-PCL::*SGF-ARG-INFO-INDEX* 
207 SB-PCL::*SGF-METHOD-CLASS-INDEX* 
208 SB-PCL::*SGF-METHODS-INDEX* 
209 SB-PCL::*SGF-NAME-INDEX* 
210 SB-PCL::*SGF-SLOTS-INIT* 
211 SB-PCL::*SHOW-MAKE-UNORDERED-METHODS-EMF-CALLS* 
212 SB-PCL::*SLOT-NAMES-FOR-THIS-DEFCLASS*
213 SB-PCL::*SLOT-VECTOR-SYMBOLS* 
214 SB-PCL::*STANDARD-CLASSES* 
215 SB-PCL::*STANDARD-METHOD-COMBINATION* 
216 SB-PCL::*STANDARD-SETF-SLOT-VALUE-USING-CLASS-METHOD* 
217 SB-PCL::*STANDARD-SLOT-BOUNDP-USING-CLASS-METHOD* 
218 SB-PCL::*STANDARD-SLOT-LOCATIONS* 
219 SB-PCL::*STANDARD-SLOT-VALUE-USING-CLASS-METHOD* 
220 SB-PCL::*STD-CAM-METHODS* 
221 SB-PCL::*STRUCTURE-SETF-SLOT-VALUE-USING-CLASS-METHOD* 
222 SB-PCL::*STRUCTURE-SLOT-BOUNDP-USING-CLASS-METHOD* 
223 SB-PCL::*STRUCTURE-SLOT-VALUE-USING-CLASS-METHOD* 
224 SB-PCL::*SUBTYPEP 
225 SB-PCL::*THE-CLASS-ARRAY* 
226 SB-PCL::*THE-CLASS-BASE-CHAR* 
227 SB-PCL::*THE-CLASS-BIGNUM* 
228 SB-PCL::*THE-CLASS-BIT-VECTOR* 
229 SB-PCL::*THE-CLASS-BUILT-IN-CLASS* 
230 SB-PCL::*THE-CLASS-CHARACTER* 
231 SB-PCL::*THE-CLASS-CLASS* 
232 SB-PCL::*THE-CLASS-CLASS-EQ-SPECIALIZER* 
233 SB-PCL::*THE-CLASS-CLASS-PROTOTYPE-SPECIALIZER* 
234 SB-PCL::*THE-CLASS-CODE-COMPONENT* 
235 SB-PCL::*THE-CLASS-COMPLEX* 
236 SB-PCL::*THE-CLASS-COMPLEX-DOUBLE-FLOAT* 
237 SB-PCL::*THE-CLASS-COMPLEX-SINGLE-FLOAT* 
238 SB-PCL::*THE-CLASS-CONDITION* 
239 SB-PCL::*THE-CLASS-CONDITION-CLASS* 
240 SB-PCL::*THE-CLASS-CONDITION-DIRECT-SLOT-DEFINITION* 
241 SB-PCL::*THE-CLASS-CONDITION-EFFECTIVE-SLOT-DEFINITION* 
242 SB-PCL::*THE-CLASS-CONDITION-SLOT-DEFINITION* 
243 SB-PCL::*THE-CLASS-CONS* 
244 SB-PCL::*THE-CLASS-DEFINITION-SOURCE-MIXIN* 
245 SB-PCL::*THE-CLASS-DEPENDENT-UPDATE-MIXIN* 
246 SB-PCL::*THE-CLASS-DIRECT-SLOT-DEFINITION* 
247 SB-PCL::*THE-CLASS-DOCUMENTATION-MIXIN* 
248 SB-PCL::*THE-CLASS-DOUBLE-FLOAT* 
249 SB-PCL::*THE-CLASS-EFFECTIVE-SLOT-DEFINITION* 
250 SB-PCL::*THE-CLASS-EQL-SPECIALIZER* 
251 SB-PCL::*THE-CLASS-EXACT-CLASS-SPECIALIZER* 
252 SB-PCL::*THE-CLASS-FDEFN* 
253 SB-PCL::*THE-CLASS-FIXNUM* 
254 SB-PCL::*THE-CLASS-FLOAT* 
255 SB-PCL::*THE-CLASS-FORWARD-REFERENCED-CLASS* 
256 SB-PCL::*THE-CLASS-FUNCALLABLE-INSTANCE* 
257 SB-PCL::*THE-CLASS-FUNCALLABLE-STANDARD-CLASS* 
258 SB-PCL::*THE-CLASS-FUNCALLABLE-STANDARD-OBJECT* 
259 SB-PCL::*THE-CLASS-FUNCTION* 
260 SB-PCL::*THE-CLASS-GENERIC-FUNCTION* 
261 SB-PCL::*THE-CLASS-INSTANCE* 
262 SB-PCL::*THE-CLASS-INTEGER* 
263 SB-PCL::*THE-CLASS-LIST* 
264 SB-PCL::*THE-CLASS-LONG-METHOD-COMBINATION* 
265 SB-PCL::*THE-CLASS-LRA* 
266 SB-PCL::*THE-CLASS-METHOD* 
267 SB-PCL::*THE-CLASS-METHOD-COMBINATION* 
268 SB-PCL::*THE-CLASS-NULL* 
269 SB-PCL::*THE-CLASS-NUMBER* 
270 SB-PCL::*THE-CLASS-PCL-CLASS* 
271 SB-PCL::*THE-CLASS-PLIST-MIXIN* 
272 SB-PCL::*THE-CLASS-RANDOM-CLASS* 
273 SB-PCL::*THE-CLASS-RATIO* 
274 SB-PCL::*THE-CLASS-RATIONAL* 
275 SB-PCL::*THE-CLASS-REAL* 
276 SB-PCL::*THE-CLASS-SEQUENCE* 
277 SB-PCL::*THE-CLASS-SIMPLE-ARRAY* 
278 SB-PCL::*THE-CLASS-SIMPLE-ARRAY-COMPLEX-DOUBLE-FLOAT* 
279 SB-PCL::*THE-CLASS-SIMPLE-ARRAY-COMPLEX-SINGLE-FLOAT* 
280 SB-PCL::*THE-CLASS-SIMPLE-ARRAY-DOUBLE-FLOAT* 
281 SB-PCL::*THE-CLASS-SIMPLE-ARRAY-SIGNED-BYTE-16* 
282 SB-PCL::*THE-CLASS-SIMPLE-ARRAY-SIGNED-BYTE-30* 
283 SB-PCL::*THE-CLASS-SIMPLE-ARRAY-SIGNED-BYTE-32* 
284 SB-PCL::*THE-CLASS-SIMPLE-ARRAY-SIGNED-BYTE-8* 
285 SB-PCL::*THE-CLASS-SIMPLE-ARRAY-SINGLE-FLOAT* 
286 SB-PCL::*THE-CLASS-SIMPLE-ARRAY-UNSIGNED-BYTE-16* 
287 SB-PCL::*THE-CLASS-SIMPLE-ARRAY-UNSIGNED-BYTE-2* 
288 SB-PCL::*THE-CLASS-SIMPLE-ARRAY-UNSIGNED-BYTE-32* 
289 SB-PCL::*THE-CLASS-SIMPLE-ARRAY-UNSIGNED-BYTE-4* 
290 SB-PCL::*THE-CLASS-SIMPLE-ARRAY-UNSIGNED-BYTE-8* 
291 SB-PCL::*THE-CLASS-SIMPLE-BIT-VECTOR* 
292 SB-PCL::*THE-CLASS-SIMPLE-STRING* 
293 SB-PCL::*THE-CLASS-SIMPLE-VECTOR* 
294 SB-PCL::*THE-CLASS-SINGLE-FLOAT* 
295 SB-PCL::*THE-CLASS-SLOT-CLASS* 
296 SB-PCL::*THE-CLASS-SLOT-DEFINITION* 
297 SB-PCL::*THE-CLASS-SLOT-OBJECT* 
298 SB-PCL::*THE-CLASS-SPECIALIZER* 
299 SB-PCL::*THE-CLASS-SPECIALIZER-WITH-OBJECT* 
300 SB-PCL::*THE-CLASS-STANDARD-ACCESSOR-METHOD* 
301 SB-PCL::*THE-CLASS-STANDARD-BOUNDP-METHOD* 
302 SB-PCL::*THE-CLASS-STANDARD-CLASS* 
303 SB-PCL::*THE-CLASS-STANDARD-DIRECT-SLOT-DEFINITION* 
304 SB-PCL::*THE-CLASS-STANDARD-EFFECTIVE-SLOT-DEFINITION* 
305 SB-PCL::*THE-CLASS-STANDARD-GENERIC-FUNCTION* 
306 SB-PCL::*THE-CLASS-STANDARD-METHOD* 
307 SB-PCL::*THE-CLASS-STANDARD-METHOD-COMBINATION* 
308 SB-PCL::*THE-CLASS-STANDARD-OBJECT* 
309 SB-PCL::*THE-CLASS-STANDARD-READER-METHOD* 
310 SB-PCL::*THE-CLASS-STANDARD-SLOT-DEFINITION* 
311 SB-PCL::*THE-CLASS-STANDARD-WRITER-METHOD* 
312 SB-PCL::*THE-CLASS-STD-CLASS* 
313 SB-PCL::*THE-CLASS-STD-OBJECT* 
314 SB-PCL::*THE-CLASS-STREAM* 
315 SB-PCL::*THE-CLASS-STRING* 
316 SB-PCL::*THE-CLASS-STRUCTURE-CLASS* 
317 SB-PCL::*THE-CLASS-STRUCTURE-DIRECT-SLOT-DEFINITION* 
318 SB-PCL::*THE-CLASS-STRUCTURE-EFFECTIVE-SLOT-DEFINITION* 
319 SB-PCL::*THE-CLASS-STRUCTURE-OBJECT* 
320 SB-PCL::*THE-CLASS-STRUCTURE-SLOT-DEFINITION* 
321 SB-PCL::*THE-CLASS-SYMBOL* 
322 SB-PCL::*THE-CLASS-SYSTEM-AREA-POINTER* 
323 SB-PCL::*THE-CLASS-T* 
324 SB-PCL::*THE-CLASS-VECTOR* 
325 SB-PCL::*THE-CLASS-WEAK-POINTER* 
326 SB-PCL::*THE-ESLOTD-FUNCALLABLE-STANDARD-CLASS-SLOTS* 
327 SB-PCL::*THE-ESLOTD-STANDARD-CLASS-SLOTS* 
328 SB-PCL::*THE-SYSTEM-II-METHOD* 
329 SB-PCL::*THE-SYSTEM-SI-METHOD* 
330 SB-PCL::*THE-WRAPPER-OF-ARRAY* 
331 SB-PCL::*THE-WRAPPER-OF-BASE-CHAR* 
332 SB-PCL::*THE-WRAPPER-OF-BIGNUM* 
333 SB-PCL::*THE-WRAPPER-OF-BIT-VECTOR* 
334 SB-PCL::*THE-WRAPPER-OF-CHARACTER* 
335 SB-PCL::*THE-WRAPPER-OF-CODE-COMPONENT* 
336 SB-PCL::*THE-WRAPPER-OF-COMPLEX* 
337 SB-PCL::*THE-WRAPPER-OF-COMPLEX-DOUBLE-FLOAT* 
338 SB-PCL::*THE-WRAPPER-OF-COMPLEX-SINGLE-FLOAT* 
339 SB-PCL::*THE-WRAPPER-OF-CONS* 
340 SB-PCL::*THE-WRAPPER-OF-DOUBLE-FLOAT* 
341 SB-PCL::*THE-WRAPPER-OF-FDEFN* 
342 SB-PCL::*THE-WRAPPER-OF-FIXNUM* 
343 SB-PCL::*THE-WRAPPER-OF-FLOAT* 
344 SB-PCL::*THE-WRAPPER-OF-INTEGER* 
345 SB-PCL::*THE-WRAPPER-OF-LIST* 
346 SB-PCL::*THE-WRAPPER-OF-LRA* 
347 SB-PCL::*THE-WRAPPER-OF-NULL* 
348 SB-PCL::*THE-WRAPPER-OF-NUMBER* 
349 SB-PCL::*THE-WRAPPER-OF-RANDOM-CLASS* 
350 SB-PCL::*THE-WRAPPER-OF-RATIO* 
351 SB-PCL::*THE-WRAPPER-OF-RATIONAL* 
352 SB-PCL::*THE-WRAPPER-OF-REAL* 
353 SB-PCL::*THE-WRAPPER-OF-SEQUENCE* 
354 SB-PCL::*THE-WRAPPER-OF-SIMPLE-ARRAY* 
355 SB-PCL::*THE-WRAPPER-OF-SIMPLE-ARRAY-COMPLEX-DOUBLE-FLOAT* 
356 SB-PCL::*THE-WRAPPER-OF-SIMPLE-ARRAY-COMPLEX-SINGLE-FLOAT* 
357 SB-PCL::*THE-WRAPPER-OF-SIMPLE-ARRAY-DOUBLE-FLOAT* 
358 SB-PCL::*THE-WRAPPER-OF-SIMPLE-ARRAY-SIGNED-BYTE-16* 
359 SB-PCL::*THE-WRAPPER-OF-SIMPLE-ARRAY-SIGNED-BYTE-30* 
360 SB-PCL::*THE-WRAPPER-OF-SIMPLE-ARRAY-SIGNED-BYTE-32* 
361 SB-PCL::*THE-WRAPPER-OF-SIMPLE-ARRAY-SIGNED-BYTE-8* 
362 SB-PCL::*THE-WRAPPER-OF-SIMPLE-ARRAY-SINGLE-FLOAT* 
363 SB-PCL::*THE-WRAPPER-OF-SIMPLE-ARRAY-UNSIGNED-BYTE-16* 
364 SB-PCL::*THE-WRAPPER-OF-SIMPLE-ARRAY-UNSIGNED-BYTE-2* 
365 SB-PCL::*THE-WRAPPER-OF-SIMPLE-ARRAY-UNSIGNED-BYTE-32* 
366 SB-PCL::*THE-WRAPPER-OF-SIMPLE-ARRAY-UNSIGNED-BYTE-4* 
367 SB-PCL::*THE-WRAPPER-OF-SIMPLE-ARRAY-UNSIGNED-BYTE-8* 
368 SB-PCL::*THE-WRAPPER-OF-SIMPLE-BIT-VECTOR* 
369 SB-PCL::*THE-WRAPPER-OF-SIMPLE-STRING* 
370 SB-PCL::*THE-WRAPPER-OF-SIMPLE-VECTOR* 
371 SB-PCL::*THE-WRAPPER-OF-SINGLE-FLOAT* 
372 SB-PCL::*THE-WRAPPER-OF-STRING* 
373 SB-PCL::*THE-WRAPPER-OF-STRUCTURE-OBJECT* 
374 SB-PCL::*THE-WRAPPER-OF-SYMBOL* 
375 SB-PCL::*THE-WRAPPER-OF-SYSTEM-AREA-POINTER* 
376 SB-PCL::*THE-WRAPPER-OF-T* 
377 SB-PCL::*THE-WRAPPER-OF-VECTOR* 
378 SB-PCL::*THE-WRAPPER-OF-WEAK-POINTER* 
379 SB-PCL::*WRITERS-FOR-THIS-DEFCLASS*
380 SB-PCL::WRAPPER-CLASS* 
381
382
383 = debugger
384
385 *DEBUG-PRINT-LENGTH* 
386 *TRACE-FRAME*
387 *TRACE-ENCAPSULATE-DEFAULT* 
388 *MAX-TRACE-INDENTATION* 
389 *IN-THE-DEBUGGER* 
390 *DEBUG-BEGINNER-HELP-P* 
391 *STACK-TOP-HINT* 
392 *DEBUG-HELP-STRING* 
393 *ONLY-BLOCK-START-LOCATIONS* 
394 *FLUSH-DEBUG-ERRORS* 
395 *DEBUG-CONDITION*
396 *TRACE-VALUES* 
397 *PRINT-LOCATION-KIND* 
398 *DEBUG-PRINT-LEVEL* 
399 *TRACED-FUN-LIST*
400 *TRACE-INDENTATION-STEP* 
401 *DEBUG-READTABLE* 
402 SB-DEBUG::*CACHED-DEBUG-SOURCE* 
403 SB-DEBUG::*POSSIBLE-BREAKPOINTS*
404 SB-DEBUG::*BAD-CODE-LOCATION-TYPES* 
405 SB-DEBUG::*TRACED-ENTRIES* 
406 SB-DEBUG::*DEBUG-COMMAND-LEVEL* 
407 SB-DEBUG::*CACHED-SOURCE-STREAM* 
408 SB-DEBUG::*DEBUG-LOOP-FUN* 
409 SB-DEBUG::*NESTED-DEBUG-CONDITION*
410 SB-DEBUG::*STEP-BREAKPOINTS* 
411 SB-DEBUG::*DEBUG-RESTARTS*
412 SB-DEBUG::*BREAKPOINTS* 
413 SB-DEBUG::*TRACED-FUNS* 
414 SB-DEBUG::*DEBUG-COMMANDS* 
415 SB-DEBUG::*DEFAULT-BREAKPOINT-DEBUG-FUN* 
416 SB-DEBUG::*CACHED-READTABLE* 
417 SB-DEBUG::*IN-TRACE* 
418 SB-DEBUG::*CACHED-TOPLEVEL-FORM-OFFSET* 
419 SB-DEBUG::*STACK-TOP* 
420 SB-DEBUG::*CURRENT-FRAME* 
421 SB-DEBUG::*CACHED-TOPLEVEL-FORM*
422 SB-DEBUG::*NUMBER-OF-STEPS* 
423 SB-DEBUG::*REAL-STACK-TOP* 
424 SB-DI::*PARSING-BUFFER* 
425 SB-DI::*IR1-BLOCK-DEBUG-BLOCK* 
426 SB-DI::*OTHER-PARSING-BUFFER* 
427 SB-DI::*COMPILED-DEBUG-FUNS* 
428 SB-DI::*COMPONENT-BREAKPOINT-OFFSETS* 
429 SB-DI::*FUN-END-COOKIES* 
430 SB-DI::*FORM-NUMBER-CIRCULARITY-TABLE* 
431 SB-DI::*EXECUTING-BREAKPOINT-HOOKS* 
432 SB-DI::*IR1-LAMBDA-DEBUG-FUN* 
433
434 = profiler
435
436 SB-PROFILE::*PROFILED-FUN-NAME->INFO* 
437 SB-PROFILE::*ENCLOSED-CONSING* 
438 SB-PROFILE::*COMPUTING-PROFILING-DATA-FOR*
439 SB-PROFILE::*ENCLOSED-PROFILES* 
440 SB-PROFILE::*TIMER-OVERHEAD-ITERATIONS* 
441 SB-PROFILE::*OVERHEAD*
442 SB-PROFILE::*ENCLOSED-TICKS* 
443
444 = disassembler
445
446 SB-DISASSEM:*DISASSEM-INST-ALIGNMENT-BYTES* 
447 SB-DISASSEM:*DISASSEM-NOTE-COLUMN* 
448 SB-DISASSEM:*DEFAULT-DSTATE-HOOKS* 
449 SB-DISASSEM:*DISASSEM-OPCODE-COLUMN-WIDTH* 
450 SB-DISASSEM:*DISASSEM-SCHEDULER-P*
451 SB-DISASSEM:*DISASSEM-LOCATION-COLUMN-WIDTH* 
452 SB-DISASSEM::*FOREIGN-SYMBOLS-BY-ADDR* 
453 SB-DISASSEM::*ARG-FUN-PARAMS* 
454 SB-DISASSEM::*ADDRESS-OF-NIL-OBJECT* 
455 SB-DISASSEM::*DISASSEM-INSTS* 
456 SB-DISASSEM::*DISASSEM-FUN-CACHE* 
457 SB-DISASSEM::*DISASSEM-INST-FORMATS* 
458 SB-DISASSEM::*GROKKED-SYMBOL-SLOTS* 
459 SB-DISASSEM::*ARG-FORM-KINDS* 
460 SB-DISASSEM::*DISASSEM-INST-SPACE* 
461 SB-DISASSEM::*CURRENT-INSTRUCTION-FLAVOR* 
462 SB-DISASSEM::*DISASSEM-ARG-TYPES* 
463 SB-DISASSEM::*ASSEMBLER-ROUTINES-BY-ADDR* 
464
465 = assembler
466
467 Currently protected by *big-compiler-lock*.  Mostly uninvestigated
468
469 SB-ASSEM:*ASSEM-MAX-LOCATIONS* 
470 SB-ASSEM:*ASSEM-INSTRUCTIONS* 
471 SB-ASSEM:*ASSEM-SCHEDULER-P* 
472 SB-ASSEM::*INSTRUCTION-ATTRIBUTE-TRANSLATIONS* 
473 SB-ASSEM::**CURRENT-VOP** 
474 SB-ASSEM::**CURRENT-SEGMENT**
475
476
477 = unix interface
478
479 Looks good to me
480
481 SB-UNIX::*INTERRUPTS-ENABLED*  ; ok,  bound
482 SB-UNIX::*UNIX-SIGNALS*        ; ok, read-only
483 SB-UNIX::*INTERRUPT-PENDING*  ; ok, bound
484
485 = toplevel/environment stuff
486
487 Some of these should probably be bound on thread entry.  I haven't
488 checked them yet, except where indicated
489
490 *DEBUG-IO* 
491 SB-SYS:*TTY* 
492 SB-SYS:*STDIN* 
493 SB-SYS:*STDOUT* 
494 SB-SYS:*STDERR* 
495 SB-SYS:*LONG-SITE-NAME*    ; readonly
496 SB-SYS:*SHORT-SITE-NAME*   ; readonly
497 SB-SYS::*SOFTWARE-VERSION* ; readonly
498 SB-THREAD::*SESSION-LOCK*  ; bound
499 SB-THREAD::*BACKGROUND-THREADS-WAIT-FOR-DEBUGGER* ; intentionally global
500 ***   ; bound
501 **    ; bound
502 *     ; bound
503 *PRINT-PRETTY* 
504 *LOAD-VERBOSE* 
505 *LOAD-TRUENAME* 
506 *READ-BASE* 
507 *BREAK-ON-SIGNALS* 
508 *PRINT-READABLY* 
509 *PRINT-CIRCLE* 
510 *FEATURES*                     ; write at own risk
511 *PRINT-BASE* 
512 *PACKAGE* 
513 *PRINT-RADIX* 
514 *READ-SUPPRESS* 
515 *ERROR-OUTPUT* 
516 *DEFAULT-PATHNAME-DEFAULTS* 
517 *LOAD-PATHNAME* 
518 *STANDARD-OUTPUT* 
519 *PRINT-RIGHT-MARGIN* 
520 *READTABLE* 
521 *PRINT-CASE* 
522 *PRINT-MISER-WIDTH* 
523 *PRINT-PPRINT-DISPATCH* 
524 *PRINT-LENGTH* 
525 *TERMINAL-IO* 
526 *PRINT-GENSYM* 
527 *QUERY-IO* 
528 *STANDARD-INPUT* 
529 *LOAD-PRINT* 
530 *DEBUGGER-HOOK* 
531 *PRINT-LINES* 
532 *PRINT-ESCAPE* 
533 *PRINT-LEVEL* 
534 *READ-EVAL* 
535 *PRINT-ESCAPE* 
536 *TRACE-OUTPUT* 
537 SB-IMPL::*INSPECT-LENGTH* 
538 SB-IMPL::*DRIBBLE-STREAM*         ; what to do with dribble in threaded lisp?
539 SB-IMPL::*HELP-FOR-INSPECT*       ; read-only
540 *PRINT-ARRAY*                     
541
542
543
544 *POSIX-ARGV*     ; read-only
545 *READ-DEFAULT-FLOAT-FORMAT*   ; probably "change at own risk"
546 *MODULES*   ; should be changed only by provide/require, needs locking
547 *MODULE-PROVIDER-FUNCTIONS* ; probably "change at own risk"
548 SB-IMPL::*REPL-FUN*         
549 SB-INT:*REPL-READ-FORM-FUN* 
550 SB-INT:*REPL-PROMPT-FUN* 
551
552 = the formatter & pretty printer
553
554 == probably safe (readonly unless indicated)
555
556 (defparameter *format-whitespace-chars*
557 (defvar *format-directive-expanders*
558 (defvar *format-directive-interpreters*
559 (defvar *default-format-error-control-string* nil)
560 (defvar *default-format-error-offset* nil)
561 SB-FORMAT::*CARDINAL-ONES* ; readonly
562 SB-FORMAT::*CARDINAL-TENS* 
563 SB-FORMAT::*CARDINAL-TEENS* 
564 SB-FORMAT::*ORDINAL-ONES* 
565 SB-FORMAT::*ORDINAL-TENS* 
566 SB-FORMAT::*CARDINAL-PERIODS* 
567 SB-FORMAT::*ILLEGAL-INSIDE-JUSTIFICATION* 
568 SB-FORMAT::*OUTSIDE-ARGS* ; safe, bound
569
570
571 (defvar *up-up-and-out-allowed* nil) ; safe, bound
572 (defvar *logical-block-popper* nil) ; bound
573 (defvar *expander-next-arg-macro* 'expander-next-arg) ; bound
574 (defvar *orig-args-available* nil) ; bound
575
576 == needs checking
577
578 ;;; Used by the expander stuff. Initially starts as T, and gets set to NIL
579 ;;; if someone needs to do something strange with the arg list (like use
580 ;;; the rest, or something).  Setf in late-format, haven't checked if it's
581 ;;; always in a bound context
582 (defvar *only-simple-args*)
583
584 ;;; setf in late-format, haven't checked
585 (defvar *simple-args*)
586
587 == haven't looked at yet
588
589 SB-PRETTY::*INITIAL-PPRINT-DISPATCH* 
590 SB-PRETTY::*BUILDING-INITIAL-TABLE* 
591 SB-PRETTY::*PRECOMPILED-PPRINT-DISPATCH-FUNS* 
592
593
594 = compiler
595
596 Note that the compiler and fasloader are strongly believed not to be
597 thread-safe, so there is currently a big lock (*big-compiler-lock*)
598 around all calls to the compiler or fasloader
599
600 Note that INFO functions use a shared cache for the globaldb, and
601 don't lock for cache invalidation. This will need fixing when BCL is
602 removed.
603
604 *COMPILE-FILE-PATHNAME*  
605 *COMPILE-FILE-TRUENAME* 
606 *COMPILE-PRINT* 
607 *COMPILE-VERBOSE* 
608 *COMPILE-PROGRESS* 
609 SB-C:*BACKEND-INTERNAL-ERRORS* 
610 SB-C:*BACKEND-SPECIAL-ARG-TYPES* 
611 SB-C:*ASSEMBLY-OPTIMIZE* 
612 SB-C:*LEXENV*
613 SB-C:*CODE-SEGMENT* 
614 SB-C:*COMPONENT-BEING-COMPILED*
615 SB-C:*BACKEND-SB-NAMES* 
616 SB-C:*BACKEND-PAGE-SIZE* 
617 SB-C:*BACKEND-SC-NUMBERS* 
618 SB-C:*ELSEWHERE* 
619 SB-C:*BACKEND-T-PRIMITIVE-TYPE* 
620 SB-C:*BACKEND-SB-LIST* 
621 SB-C:*SETF-ASSUMED-FBOUNDP* 
622 SB-C:*FREE-FUNS*
623 SB-C:*BACKEND-DISASSEM-PARAMS*
624 SB-C:*BACKEND-SUBFEATURES* 
625 SB-C:*COUNT-VOP-USAGES*
626 SB-C:*SUPPRESS-VALUES-DECLARATION* 
627 SB-C:*BACKEND-SC-NAMES* 
628 SB-C::*CURRENT-COMPONENT*
629 SB-C::*SLOT-INHERIT-ALIST* 
630 SB-C::*COMPILER-NOTE-COUNT*
631 SB-C::*BACKEND-PREDICATE-TYPES* 
632 SB-C::*POLICY* 
633 SB-C::*INLINEP-TRANSLATIONS* 
634 SB-C::*PACK-OPTIMIZE-SAVES* 
635 SB-C::*DELETION-IGNORED-OBJECTS* 
636 SB-C::*LAST-FORMAT-ARGS* 
637 SB-C::*CONSTANTS-BEING-CREATED* 
638 SB-C::*IGNORED-ERRORS* 
639 SB-C::*COMPILE-OBJECT* 
640 SB-C::*TN-IDS* 
641 SB-C::*LOSSAGE-FUN*
642 SB-C::*COMPILER-ERROR-COUNT*
643 SB-C::*EVENT-NOTE-THRESHOLD* 
644 SB-C::*LAST-MESSAGE-COUNT* 
645 SB-C::*EMIT-ASSEMBLY-CODE-NOT-VOPS-P* 
646 SB-C::*LAST-FORMAT-STRING* 
647 SB-C::*UNWINNAGE-FUN*
648 SB-C::*COMPILER-ERROR-CONTEXT* 
649 SB-C::*SEEN-BLOCKS* 
650 SB-C::*TN-ID* 
651 SB-C::*IR1-OPTIMIZE-UNTIL-DONE-EVENT-INFO* 
652 SB-C::*SPECIALIZED-ARRAY-ELEMENT-TYPE-PROPERTIES*       ; readonly
653 SB-C::*NUMBER-CONTINUATIONS* 
654 SB-C::*CTYPE-TEST-FUN*
655 SB-C::*IGNORE-COST-VOPS* 
656 SB-C::*QUEUED-PROCLAIMS*
657 SB-C::*COMPILER-STYLE-WARNING-COUNT*
658 SB-C::*LABEL-IDS* 
659 SB-C::TN-NEXT* 
660 SB-C::*BACKEND-SUPPORT-ROUTINES* 
661 SB-C::*COMPILED-CODE-LOCATION-KINDS* 
662 SB-C::*VOP-TN-REFS* 
663 SB-C::*INFO-CACHE-VECTOR* 
664 SB-C::*FAILURE-P*
665 SB-C::*LAST-ORIGINAL-SOURCE*
666 SB-C::NEXT*
667 SB-C::LIST*-IR2-CONVERT-OPTIMIZER 
668 SB-C::*COMPILER-ERROR-BAILOUT*
669 SB-C::*DELAYED-IR1-TRANSFORMS*
670 SB-C::*INFO-TYPES* 
671 SB-C::*CACHED-INFO-ENVIRONMENT* 
672 SB-C::*CHECK-CONSISTENCY* 
673 SB-C::*SEEN-FUNS* 
674 SB-C::*USING-VOP-TN-REFS* 
675 SB-C::*MAKE-VALUE-CELL-EVENT-EVENT-INFO* 
676 SB-C::*IN-PACK* 
677 SB-C::*REPACK-BLOCK-EVENT-INFO* 
678 SB-C::*UNPACK-TN-EVENT-INFO* 
679 SB-C::*COALESCE-MORE-LTN-NUMBERS-EVENT-INFO* 
680 SB-C::*IN-COMPILATION-UNIT* 
681 SB-C::*BACKEND-TEMPLATE-NAMES* 
682 SB-C::*BACKEND-PRIMITIVE-TYPE-NAMES* 
683 SB-C::*CONSTRAINT-PROPAGATE* 
684 SB-C::*BACKEND-PRIMITIVE-TYPE-ALIASES* 
685 SB-C::*NO-COSTS* 
686 SB-C::*PACK-ASSIGN-COSTS* 
687 SB-C::*CURRENT-FORM-NUMBER*
688 SB-C::*BACKEND-META-SC-NAMES* 
689 SB-C::*BLOCK-COMPILE-ARG*
690 SB-C::*COMPILER-ERROR-PRINT-LENGTH* 
691 SB-C::*CONTINUATION-NUMBER* 
692 SB-C::*PREV-SEGMENT*
693 SB-C::*CONTROL-DELETED-BLOCK-EVENT-INFO* 
694 SB-C::*ALLOW-DEBUG-CATCH-TAG* 
695 SB-C::*ID-LABELS* 
696 SB-C::*BACKEND-TYPE-PREDICATES* 
697 SB-C::*COMPILER-WARNING-COUNT*
698 SB-C::*SUPPRESS-NOTE-VOPS* 
699 SB-C::*COMPILER-ERROR-PRINT-LEVEL* 
700 SB-C::*COMPLEMENT-TYPE-CHECKS* 
701 SB-C::*META-PRIMITIVE-TYPE-NAMES*
702 SB-C::*FUN-NAMES-IN-THIS-FILE* 
703 SB-C::*SPLIT-IR2-BLOCK-EVENT-INFO* 
704 SB-C::*TRACE-TABLE*
705 SB-C::*LAST-SOURCE-FORM*
706 SB-C::*WEAKEN-TYPE-CACHE-VECTOR* 
707 SB-C::*-DERIVE-TYPE-AUX 
708 SB-C::*BLOCK-COMPILE*
709 SB-C::*BIG-COMPILER-LOCK*                ; protecting the rest
710 SB-C::*VM-SUPPORT-ROUTINES* 
711 SB-C::*PRIMITIVE-TYPE-SLOT-ALIST* 
712 SB-C::*PREVIOUS-LOCATION*
713 SB-C::*BYTE-BUFFER*
714 SB-C::*CONSTANTS-CREATED-SINCE-LAST-INIT* 
715 SB-C::*LAST-SOURCE-CONTEXT*
716 SB-C::*FIXUPS*
717 SB-C::VOP* 
718 SB-C::*REOPTIMIZE-MAXED-OUT-EVENT-INFO* 
719 SB-C::*LIST-CONFLICTS-TABLE* 
720 SB-C::*LOSSAGE-DETECTED*
721 SB-C::*LAST-ERROR-CONTEXT* 
722 SB-C::*PREV-VOP*
723 SB-C::*POLICY-DEPENDENT-QUALITIES* 
724 SB-C::*REOPTIMIZE-AFTER-TYPE-CHECK-MAX* 
725 SB-C::*-DERIVE-TYPE-OPTIMIZER 
726 SB-C::*IR1-ATTRIBUTE-TRANSLATIONS* 
727 SB-C::*ARGS* 
728 SB-C::*DYNAMIC-COUNTS-TN*
729 SB-C::*EXTREME-NTHCDR-OPEN-CODE-LIMIT* 
730 SB-C::*BACKEND-PARSED-VOPS* 
731 SB-C::*ABORTED-COMPILATION-UNIT-COUNT*
732 SB-C::*COPY-DELETED-MOVE-EVENT-INFO* 
733 SB-C::*MAX-OPTIMIZE-ITERATIONS* 
734 SB-C::*TOPLEVEL-LAMBDAS*
735 SB-C::*SC-VOP-SLOTS* 
736 SB-C::*IR1-OPTIMIZE-MAXED-OUT-EVENT-INFO* 
737 SB-C::*CONTINUATION-NUMBERS* 
738 SB-C::*WARNINGS-P*
739 SB-C::*BACKEND-META-SC-NUMBERS* 
740 SB-C::*FLAME-ON-NECESSARILY-UNDEFINED-FUNCTION* 
741 SB-C::*UNPACK-FALLBACK-EVENT-INFO* 
742 SB-C::*SOURCE-INFO* 
743 SB-C::*LIVE-BLOCK*
744 SB-C::*BACKEND-META-PRIMITIVE-TYPE-NAMES* 
745 SB-C::*NEXT-LOCATION*
746 SB-C::*ELSEWHERE-LABEL* 
747 SB-C::*SOURCE-PATHS*
748 SB-C::*CONSTANTS*
749 SB-C::*BACKEND-META-SB-NAMES* 
750 SB-C::*DEFAULT-NTHCDR-OPEN-CODE-LIMIT* 
751 SB-C::*ALWAYS-OPTIMIZED-AWAY* 
752 SB-C::*CURRENT-PATH*
753 SB-C::*LABEL-ID* 
754 SB-C::*ENTRY-POINTS* 
755 SB-C::*COMPILER-TRACE-OUTPUT* 
756 SB-C::*CONSTRAINT-NUMBER*
757 SB-C::*INFO-CLASSES* 
758 SB-C::*RESULT-FIXUPS*
759 SB-C::*REPACK-BLOCKS*
760 SB-C::IR1-CONVERT-LET* 
761 SB-C::*CODE-VECTOR*
762 SB-C::*FREE-VARS*
763 SB-C::*SOURCE-CONTEXT-METHODS* 
764 SB-C::*VOP-ATTRIBUTE-TRANSLATIONS* 
765 SB-C::*COMPILER-ERROR-PRINT-LINES* 
766 SB-C::*LIVE-VOP*
767 SB-C::*POLICY-QUALITIES* 
768 SB-C::*NO-LOADS* 
769 SB-C::*TRACE-TABLE-INFO*
770 SB-C::*UNDEFINED-WARNINGS*
771 SB-C::*BLOCK-ATTRIBUTE-TRANSLATIONS* 
772 SB-C::*EVENT-INFO* 
773 SB-C::*BURP-ACTION* 
774 SB-C::*UNWINNAGE-DETECTED*
775 SB-C::*ID-TNS* 
776
777 = fasloader
778
779 SB-FASL:*STATIC-FOREIGN-SYMBOLS* 
780 SB-FASL:*ASSEMBLER-ROUTINES* 
781 SB-FASL:*FASL-FILE-TYPE* 
782 SB-FASL::FOP-LIST*-4 
783 SB-FASL::*COLD-LOAD-DUMP* 
784 SB-FASL::FOP-LIST*-7 
785 SB-FASL::FOP-LIST*-8 
786 SB-FASL::FOP-LIST*-1 
787 SB-FASL::FOP-LIST*-2 
788 SB-FASL::*FASL-INPUT-STREAM*
789 SB-FASL::*FOP-STACK* 
790 SB-FASL::*LOAD-DEPTH* 
791 SB-FASL::*FEATURES-AFFECTING-FASL-FORMAT* 
792 SB-FASL::*DUMP-ONLY-VALID-STRUCTURES* 
793 SB-FASL::*CURRENT-FOP-TABLE-SIZE*
794 SB-FASL::*FOP-STACK-POINTER-ON-ENTRY*
795 SB-FASL::*FREE-FOP-TABLES* 
796 SB-FASL::*LOAD-SYMBOL-BUFFER* 
797 SB-FASL::*FASL-HEADER-STRING-START-STRING* 
798 SB-FASL::DUMP-FOP* 
799 SB-FASL::FOP-LIST* 
800 SB-FASL::*CIRCULARITIES-DETECTED*
801 SB-FASL::*LOAD-CODE-VERBOSE* 
802 SB-FASL::*FEATURES-POTENTIALLY-AFFECTING-FASL-FORMAT* 
803 SB-FASL::*LOAD-SYMBOL-BUFFER-SIZE* 
804 SB-FASL::*CURRENT-FOP-TABLE*
805 SB-FASL::*FOP-STACK-POINTER* 
806 SB-FASL::*CURRENT-FOP-TABLE-INDEX*
807 SB-FASL::*FOP-FUNS* 
808 SB-FASL::*CURRENT-UNWIND-PROTECT-BLOCK* 
809 SB-FASL::FOP-LIST*-5 
810 SB-FASL::*FOP-NAMES* 
811 SB-FASL::FOP-LIST*-6 
812 SB-FASL::FOP-LIST*-3 
813
814
815 = runtime stuff
816
817
818 SB-VM:*STATIC-SPACE-FREE-POINTER* 
819 SB-VM:*INITIAL-DYNAMIC-SPACE-FREE-POINTER* 
820 SB-VM:*CURRENT-CATCH-BLOCK* ; bound at thread entry (in C)
821 SB-VM:*STATIC-SYMBOLS* 
822 SB-VM:*CONTROL-STACK-START* ; safe, bound at thread entry
823 SB-VM:*READ-ONLY-SPACE-FREE-POINTER* 
824 SB-VM:*BINDING-STACK-START* ; safe, bound at thread entry
825 SB-VM:*CONTROL-STACK-END* ; safe, bound at thread entry
826 SB-VM::*CURRENT-UNWIND-PROTECT-BLOCK*  ; bound at thread entry (in C)
827 SB-VM::*FREE-TLS-INDEX* 
828 SB-VM::*BINDING-STACK-POINTER* 
829 SB-VM::*ALLOCATION-POINTER*    ; may be mostly unused ?
830 SB-KERNEL:*PSEUDO-ATOMIC-ATOMIC*  ; bound
831 SB-KERNEL:*CONTROL-STACK-EXHAUSTION-SAP*
832 SB-KERNEL:*FREE-INTERRUPT-CONTEXT-INDEX*   ; bound
833 SB-KERNEL:*GC-INHIBIT*  ; do not touch directly.  accessors may be broke too
834 SB-KERNEL:*NEED-TO-COLLECT-GARBAGE* 
835 SB-KERNEL:*ALREADY-MAYBE-GCING*
836 SB-KERNEL:*PSEUDO-ATOMIC-INTERRUPTED* ; bound
837 SB-KERNEL::*GC-TRIGGER*  ; I think this is dead, check
838 SB-IMPL::*CURRENT-UNWIND-PROTECT-BLOCK* ; thread-local
839 SB-IMPL::*READ-ONLY-SPACE-FREE-POINTER*
840 SB-VM::*ALIEN-STACK*  ; bound in create_thread_struct()
841
842 SB-IMPL::*OBJECTS-PENDING-FINALIZATION*  ; needs locking for writers
843
844 *AFTER-GC-HOOKS*     ; must be global
845 *GC-RUN-TIME*        
846 SB-INT:*N-BYTES-FREED-OR-PURIFIED* 
847
848 Note also the following may need attention
849 SB-PROFILE::TOTAL-CONSED
850 GET-BYTES-CONSED (fbound)
851 BYTES-CONSED-BETWEEN-GCS (fbound)
852
853
854 = backend constants 
855
856 These are believed to be constant (in the general sense, not necessarily 
857 eligible for defconstant).  Mostly they're attributes of the backend machine
858
859
860 SB-C:*BACKEND-REGISTER-SAVE-PENALTY* 
861 SB-C:*BACKEND-BYTE-ORDER* 
862 SB-C:*BACKEND-INSTRUCTION-FORMATS* 
863 SB-C:*BACKEND-INSTRUCTION-FLAVORS* 
864 SB-VM:*PRIMITIVE-OBJECTS* 
865 SB-VM:*ASSEMBLY-UNIT-LENGTH* 
866 SB-VM::*FP-CONSTANT-L2E*
867 SB-VM::*FLOAT-REGISTER-NAMES* 
868 SB-VM::*FP-CONSTANT-1L0*
869 SB-VM::*BYTE-REGISTER-NAMES* 
870 SB-VM::*DWORD-SC-NAMES* 
871 SB-VM::*FP-CONSTANT-1F0* 
872 SB-VM::*WORD-REGS* 
873 SB-VM::*BYTE-SC-NAMES* 
874 SB-VM::*DEFAULT-ADDRESS-SIZE* 
875 SB-VM::*FP-CONSTANT-0D0* 
876 SB-VM::*FP-CONSTANT-LG2*
877 SB-VM::*FP-CONSTANT-L2T*
878 SB-VM::*DWORD-REGS* 
879 SB-VM::*WORD-REGISTER-NAMES* 
880 SB-VM::*FP-CONSTANT-0F0* 
881 SB-VM::*FLOAT-SC-NAMES* 
882 SB-VM::*FLOAT-REGS* 
883 SB-VM::*DWORD-REGISTER-NAMES* 
884 SB-VM::*WORD-SC-NAMES* 
885 SB-VM::*FP-CONSTANT-PI*
886 SB-VM::*BYTE-REGS* 
887 SB-VM::*FP-CONSTANT-1D0* 
888 SB-VM::*DOUBLE-SC-NAMES* 
889 SB-VM::*FP-CONSTANT-0L0*
890 SB-VM::*REGISTER-ARG-OFFSETS* 
891 SB-VM::*FLOAT-TRAP-ALIST* 
892 SB-VM::*DWORD-REG-NAMES* 
893 SB-VM::*BYTE-REG-NAMES* 
894 SB-VM::*ROUNDING-MODE-ALIST* 
895 SB-VM::*REGISTER-ARG-NAMES* 
896 SB-VM::*FUN-HEADER-WIDETAGS* 
897 SB-VM::*FIXNUM-PRIMITIVE-TYPE* 
898 SB-VM:*STATIC-FUNS* 
899 SB-VM::*FP-CONSTANT-LN2*
900 SB-VM::*WORD-REG-NAMES* 
901 SB-KERNEL::*BUILT-IN-CLASSES* 
902
903 = dead stuff
904
905 ------------------------------------------------------------------------
906
907 = unclassified
908
909 SB-ALIEN-INTERNALS:*VALUES-TYPE-OKAY* 
910 SB-ALIEN::ALIEN-*-TYPE-TRANSLATOR 
911 SB-ALIEN::*DSO-LINKER* 
912 SB-ALIEN::*HANDLES-FROM-DLOPEN* 
913 SB-ALIEN::*ALIEN-TYPE-CLASSES* 
914 SB-ALIEN::*RECORD-TYPES-ALREADY-UNPARSED*
915 SB-ALIEN::*NEW-AUXILIARY-TYPES* 
916 SB-ALIEN::*DSO-LINKER-OPTIONS* 
917 SB-ALIEN::*METHOD-SLOT-ALIST* 
918
919 SB-VM::*SIGNED-IMM-BYTE-PREFILTER-WRAPPER* 
920 SB-VM::*DISPLACEMENT-PRINTER-WRAPPER* 
921 SB-VM::*ACCUM-PRINTER-WRAPPER* 
922 SB-VM::*WIDTH-PRINTER-WRAPPER* 
923 SB-VM::*LABEL-1-PREFILTER-WRAPPER* 
924 SB-VM::*WORD-ACCUM-PRINTER-WRAPPER* 
925 SB-VM::*NUM-FIXUPS* 
926 SB-VM::*SIGNED-IMM-DATA-PREFILTER-WRAPPER* 
927 SB-VM::*FIXNUM-PRIMITIVE-TYPE* 
928 SB-VM::*CONDITIONS* 
929 SB-VM::*IGNORE-AFTER* 
930 SB-VM::*IMM-WORD-PREFILTER-WRAPPER* 
931 SB-VM::*REGISTER-ARG-TNS* 
932 SB-VM::*IMM-DATA-PREFILTER-WRAPPER* 
933 SB-VM::*PRIMITIVE-TYPE-AUX-CACHE-VECTOR* 
934 SB-VM::*LABEL-2-PREFILTER-WRAPPER* 
935 SB-VM::*ROOM-INFO* 
936 SB-VM::*ADJUSTABLE-VECTORS* 
937 SB-VM::*CONDITION-NAME-VEC* 
938 SB-VM::*IMM-WORD-16-PREFILTER-WRAPPER* 
939 SB-VM::*SIMPLE-ARRAY-PRIMITIVE-TYPES* 
940 SB-VM::*MAYBE-USE-INLINE-ALLOCATION* 
941 SB-VM::*SIGNED-IMM-DWORD-PREFILTER-WRAPPER* 
942 SB-VM::*IMMEDIATE-TYPES* 
943
944 SB-KERNEL:*WILD-TYPE*                                   ; readonly
945 SB-KERNEL:*UNPARSE-FUN-TYPE-SIMPLIFY* 
946 SB-KERNEL:*CURRENT-LEVEL-IN-PRINT* 
947 SB-KERNEL:*UNIVERSAL-FUN-TYPE* 
948 SB-KERNEL:*COLD-INIT-COMPLETE-P* 
949 SB-KERNEL:*UNIVERSAL-TYPE*                              ; readonly
950 SB-KERNEL:*HANDLER-CLUSTERS*                            ; bound per-thread
951 SB-KERNEL:*EMPTY-TYPE*                                  ; readonly
952 SB-KERNEL:*MAXIMUM-ERROR-DEPTH* 
953 SB-KERNEL:*CONDITION-RESTARTS*                          ; bound per-thread
954 SB-KERNEL:*TYPE-SYSTEM-INITIALIZED* 
955 SB-KERNEL:*RESTART-CLUSTERS*                            ; bound per-thread
956 SB-KERNEL::*MAKE-VALUES-TYPE-CACHED-CACHE-VECTOR* 
957 SB-KERNEL::*BUILT-IN-CLASS-CODES*                       ; readonly
958 SB-KERNEL::*DEF!STRUCT-TYPE-MAKE-LOAD-FORM-FUN* 
959 SB-KERNEL::*LAYOUT-CLOS-HASH-RANDOM-STATE* 
960 SB-KERNEL::*TYPE-TEST-ORDERING* 
961 SB-KERNEL::*COMMON-TYPESPECS* 
962 SB-KERNEL::*TYPE=-CACHE-VECTOR* 
963 SB-KERNEL::*VALUES-SUBTYPEP-CACHE-VECTOR* 
964 SB-KERNEL::*TYPECHECKFUNS* 
965 SB-KERNEL::*%TYPE-INTERSECTION-CACHE-VECTOR* 
966 SB-KERNEL::*TYPE-INTERSECTION2-CACHE-VECTOR* 
967 SB-KERNEL::*COLD-INIT-FORMS*
968 SB-KERNEL::*DEFAULT-DEFAULT* 
969 SB-KERNEL::*RAW-SLOT-DATA-LIST* 
970 SB-KERNEL::*SPECIALIZED-ARRAY-ELEMENT-TYPES*            ; readonly
971 SB-KERNEL::*DEFSTRUCT-HOOKS* 
972 SB-KERNEL::*VALUES-TYPE-UNION-CACHE-VECTOR* 
973 SB-KERNEL::*INTERNAL-ERRORS* 
974 SB-KERNEL::*VALUES-TYPE-INTERSECTION-CACHE-VECTOR* 
975 SB-KERNEL::*FORWARD-REFERENCED-LAYOUTS* 
976 SB-KERNEL::*SYSTEM-LETS*                                ; bound
977 SB-KERNEL::*%COERCE-TO-VALUES-CACHE-VECTOR* 
978 SB-KERNEL::*IGNORABLE-VARS*
979 SB-KERNEL::*ENV-VAR*                                    ; bound
980 SB-KERNEL::|*%%MAKE-UNION-TYPE-cached-CACHE-VECTOR*| 
981 SB-KERNEL::*CSUBTYPEP-CACHE-VECTOR* 
982 SB-KERNEL::*EMPTY-CONDITION-SLOT* 
983 SB-KERNEL::*TYPE-UNION2-CACHE-VECTOR* 
984 SB-KERNEL::*TYPE-CLASS-FUN-SLOTS* 
985 SB-KERNEL::*ARG-TESTS*                                  ; bound
986 SB-KERNEL::*USER-LETS*                                  ; bound
987 SB-KERNEL::|*%%MAKE-ARRAY-TYPE-cached-CACHE-VECTOR*| 
988 SB-KERNEL::*FINDING-NAME* 
989 SB-KERNEL::*TYPE-CLASSES* 
990 SB-KERNEL::*VALUES-SPECIFIER-TYPE-CACHE-VECTOR* 
991 SB-KERNEL::*FLOAT-FORMATS*                              ; readonly
992 SB-KERNEL::*INTERNAL-ERROR-ARGS*
993 SB-KERNEL::*DEF!STRUCT-SUPERTYPE* 
994 SB-KERNEL::*%TYPE-UNION-CACHE-VECTOR* 
995 SB-KERNEL::*CTYPE-OF-CACHE-VECTOR* 
996
997 SB-IMPL::*READ-BUFFER*  ; FIXME: non-threadsafe
998 SB-IMPL::*SECONDARY-ATTRIBUTE-TABLE* 
999 SB-IMPL::*STANDARD-READTABLE* 
1000 SB-IMPL::*OUCH-PTR*  ; FIXME: non-threadsafe
1001 SB-IMPL::*ERROR-ERROR-DEPTH* 
1002 SB-IMPL::*CURRENT-ERROR-DEPTH* 
1003 SB-IMPL::*INTERNAL-REAL-TIME-BASE-SECONDS* 
1004 SB-IMPL::*DAYLIGHT-TABLE* 
1005 SB-IMPL::*OFFENDING-DATUM*
1006 SB-IMPL::*HANDLERS-INSTALLED* 
1007 SB-IMPL::*READ-FROM-STRING-SPARES* 
1008 SB-IMPL::*HASH-TABLE-TESTS* 
1009 SB-IMPL::*ATTRIBUTE-NAMES* 
1010 SB-IMPL::*DAYS-BEFORE-MONTH*                            ; readonly
1011 SB-IMPL::*CHARACTER-ATTRIBUTES* 
1012 SB-IMPL::*UNIX-HOST* 
1013 SB-IMPL::*DESCRIPTOR-HANDLERS* 
1014 SB-IMPL::*STRING-OUTPUT-STREAMS* 
1015 SB-IMPL::*CLOSE-ON-ERROR* 
1016 SB-IMPL::*INTEGER-READER-SAFE-DIGITS* 
1017 SB-IMPL::*TIMEZONE-TABLE* 
1018 SB-IMPL::*BQ-COMMA-FLAG*                                ; readonly
1019 SB-IMPL::*PRINT-OBJECT-IS-DISABLED-P*
1020 SB-IMPL::*PROFILE-HASH-CACHE* 
1021 SB-IMPL::*FIXNUM-POWER--1* 
1022 SB-IMPL::*SHARP-EQUAL-CIRCLE-TABLE*
1023 SB-IMPL::*SOFTWARE-INTERRUPT-VECTOR*        ; suspect unused
1024 SB-IMPL::*INSPECT-UNBOUND-OBJECT-MARKER* 
1025 SB-IMPL::*IN-PACKAGE-INIT* 
1026 SB-IMPL::*DELAYED-DEF!METHOD-ARGS*
1027 SB-IMPL::*GENTEMP-COUNTER* 
1028 SB-IMPL::*CLOSE-IN-PARENT* 
1029 SB-IMPL::*IN-COMPILATION-UNIT*
1030 SB-IMPL::*CIRCULARITY-HASH-TABLE* 
1031 SB-IMPL::*LOAD-PRINT-STUFF*
1032 SB-IMPL::*ACTIVE-PROCESSES* 
1033 SB-IMPL::*SHARP-SHARP-ALIST*     
1034 SB-IMPL::*BASE-POWER* 
1035 SB-IMPL::*LOGICAL-PATHNAME-DEFAULTS* 
1036 SB-IMPL::*AVAILABLE-BUFFERS* 
1037 SB-IMPL::*BQ-DOT-FLAG*                          ; readonly
1038 SB-IMPL::*CIRCULARITY-COUNTER* 
1039 SB-IMPL::*DIGITS* 
1040 SB-IMPL::*PREVIOUS-READTABLE-CASE* ; FIXME: printer not threadsafe
1041 SB-IMPL::*BQ-VECTOR-FLAG*                       ; readonly
1042 SB-IMPL::*ABBREV-WEEKDAY-TABLE* 
1043 SB-IMPL::*LOGICAL-HOSTS* 
1044 SB-IMPL::*PACKAGE-NAMES* 
1045 SB-IMPL::*INSPECT-FUN* 
1046 SB-IMPL::*ABBREV-MONTH-TABLE* 
1047 SB-IMPL::*OUTPUT-ROUTINES* 
1048 SB-IMPL::*CHAR-NAME-ALIST* 
1049 SB-IMPL::*VALID-FUN-NAMES-ALIST* 
1050 SB-IMPL::*PERIODIC-POLLING-FUNCTION* 
1051 SB-IMPL::*ABORTED-COMPILATION-UNIT-COUNT*
1052 SB-IMPL::*LONG-WEEKDAY-TABLE* 
1053 SB-IMPL::*INTERNAL-SYMBOL-OUTPUT-FUN* ; FIXME: printer not threadsafe
1054 SB-IMPL::*BACKQUOTE-COUNT*                      ; bound
1055 SB-IMPL::*DIGIT-BASES* 
1056 SB-IMPL::*PREVIOUS-DRIBBLE-STREAMS* 
1057 SB-IMPL::*MAX-EVENT-TO-USEC* 
1058 SB-IMPL::*INPUT-ROUTINES* 
1059 SB-IMPL::*MAX-EVENT-TO-SEC* 
1060 SB-IMPL::*READ-BUFFER-LENGTH* ; FIXME: not threadsafe
1061 SB-IMPL::*LONG-MONTH-TABLE* 
1062 SB-IMPL::*OLD-PACKAGE* 
1063 SB-IMPL::*INTEGER-READER-BASE-POWER* 
1064 SB-IMPL::*ERROR-THROW-UP-COUNT* 
1065 SB-IMPL::*BQ-AT-FLAG*                           ; readonly
1066 SB-IMPL::*MACHINE-VERSION*   ; unset/unbound ?  are we using this?
1067 SB-IMPL::*IGNORE-WILDCARDS* 
1068 SB-IMPL::*INCH-PTR*  ; FIXME: non-threadsafe
1069 SB-IMPL::*SHARP-EQUAL-ALIST* 
1070 SB-IMPL::*PREVIOUS-CASE* ; FIXME: printer not threadsafe
1071
1072 *INLINE-EXPANSION-LIMIT* 
1073 *DERIVE-FUNCTION-TYPES* 
1074 *ENCLOSING-SOURCE-CUTOFF* 
1075 *INSPECTED*
1076 *UNDEFINED-WARNING-LIMIT* 
1077 *EFFICIENCY-NOTE-COST-THRESHOLD* 
1078 *EFFICIENCY-NOTE-LIMIT* 
1079 *USE-IMPLEMENTATION-TYPES* 
1080 *INTEXP-MAXIMUM-EXPONENT* 
1081 *GENSYM-COUNTER* 
1082 *MACROEXPAND-HOOK* 
1083 *RANDOM-STATE* 
1084
1085 SB-INT:*CL-PACKAGE*                     ; readonly
1086 SB-INT:*KEYWORD-PACKAGE*                ; readonly
1087 SB-INT:*SETF-FDEFINITION-HOOK* 
1088 SB-INT:*DEFAULT-INIT-CHAR-FORM* 
1089 SB-INT:*EOF-OBJECT* 
1090 SB-INT:*AFTER-SAVE-INITIALIZATIONS* 
1091 SB-INT:*LOAD-SOURCE-DEFAULT-TYPE* 
1092 SB-INT:*BEFORE-SAVE-INITIALIZATIONS* 
1093 SB-INT:*INFO-ENVIRONMENT*