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