Nikodemus Siivola [Mon, 10 Mar 2008 18:49:17 +0000 (18:49 +0000)]
1.0.15.17: better threaded BIND & UNBIND for x86-64
* x86-64 port of 1.0.15.7, plus some x86 cleanups:
-- Rename ALLOCATE-TLS-INDEX-* to ALLOC-TLS-INDEX-* for more
consistent asm routine names.
-- Use (FIXNUMIZE 1) instead of magic number 4.
Shrinks the threaded x86-64 core by ~200k bytes.
Christophe Rhodes [Fri, 7 Mar 2008 12:26:37 +0000 (12:26 +0000)]
1.0.15.16: New modular arithmetic representation decision
Prefers any exactly-matching modular implementation, then tagged
if possible, then untagged. Should make code of the form
(logand xxx most-positive-fixnum)
more tolerable.
Also includes better lognot/fixnum implementation on all
platforms.
Squashed commit of the following:
commit
81776d9aab531db20711320ecea920453e058cef
Author: Christophe Rhodes <csr21@cantab.net>
Date: Fri Mar 7 04:54:03 2008 -0700
Fix lognot for fixnums on alpha.
commit
27ce80579851bf9227d7d1121cf1554dc383049d
Author: SBCL devs <sbcl-dev@aleph.math.ualberta.ca>
Date: Thu Mar 6 15:02:03 2008 -0700
New modular arithmetic ported to alpha
(as yet untested beyond make-genesis-2: lognot/fixnum is buggy)
commit
d6ae6339374983ae874d85f3c52103c77ccad222
Author: Christophe Rhodes <csr21@localhost.localdomain>
Date: Fri Jan 11 17:38:19 2008 +0000
New modular arithmetic ported to mips.
Tested by Thiemo Seufer.
commit
50e2e51d25bb3d3997e4b884b7a15f7ba1992391
Author: Christophe Rhodes <csr21@localhost.localdomain>
Date: Fri Jan 11 17:37:41 2008 +0000
Make find-modular-class get signed and unsigned the right way round.
As it happened, this all worked by accident anyway, because the only
other user of the *foo-modular-class* specials didn't rely on the
separation between the classes, but instead used other data. Hmm...
(Noticed by Nikodemus Siivola)
commit
d3de3d27b212999672644d8a4fccfce9676dbf4f
Author: Christophe Rhodes <csr21@zeus.jesus.cam.ac.uk>
Date: Tue Jan 1 14:25:33 2008 +0000
New modular arithmetic ported to sparc.
As with ppc, the signed modular arithmetic is not terribly useful, as
only good functions have been implemented (so no +, -, * and ash)
commit
e99c204ab165139f4c8f8aacb59d4a825b90b7d1
Author: Christophe Rhodes <mas01cr@gibbons.doc.gold.ac.uk>
Date: Mon Dec 31 18:15:41 2007 +0000
Fix for fixnum LOGNOT on PPC
Use subfic res, x, -4 rather than xori res, x, -4 -- xori's immediate
argument is not sign-extended.
(Thanks to Andy Hefner for the idea to use subfic rather than xori+xoris)
commit
db8ffb719750c8bc655519b03c2081cc3b8d0b2e
Author: Christophe Rhodes <mas01cr@gibbons.doc.gold.ac.uk>
Date: Mon Dec 31 18:13:21 2007 +0000
New modular arithmetic ported to ppc.
Simple modifications only. It remains for someone to add signed modular
definitions of +, -, * and so on for this to become useful on ppc.
commit
5c7562fc1e2a96a81d9bc32fb77ad70ed1794e6e
Author: Christophe Rhodes <crhodes@gibbons.doc.gold.ac.uk>
Date: Mon Dec 31 10:12:26 2007 +0000
New modular arithmetic choice for x86-64
Simply adapt x86-64/arith.lisp by
* removing logxor implementation (as it's now :good)
* adapting %LEA implementation
commit
39054fae6e5a2e55856a506ad497978adcbbd6c2
Author: Christophe Rhodes <csr21@omega.localdomain>
Date: Sun Dec 30 21:50:16 2007 +0000
Better fixnum LOGNOT implementations.
Apparently inherited from cmucl, our fixnum and signed LOGNOT VOPs had
generator costs that preferred the signed representation over the tagged.
Fix this (on all backends; tested only on x86)
commit
6eee19de7a49762ea2f3bbfe89d9ea1b0dcee47f
Author: Christophe Rhodes <csr21@omega.localdomain>
Date: Sun Dec 30 21:29:39 2007 +0000
Better signed modular arithmetic.
All the LOGFOO functions are :good modular functions for signed
modular arithmetic.
LOGXOR is a :good modular function for untagged unsigned modular
arithmetic.
commit
32961ecb51bcfea655f985d1f774a8fc46bd155b
Author: Christophe Rhodes <csr21@omega.localdomain>
Date: Sun Dec 30 19:30:57 2007 +0000
Split untagged modular class into unsigned and signed variants.
FIND-MODULAR-VERSION now takes both KIND and SIGNEDP arguments.
commit
e3b88693c3721cd84d9fb4a01d624d450c120cdd
Author: Christophe Rhodes <csr21@omega.localdomain>
Date: Sun Dec 30 17:58:49 2007 +0000
Choice of modular version, initial commit
Commit of approximately September vintage work, x86-only.
Nikodemus Siivola [Wed, 5 Mar 2008 15:11:18 +0000 (15:11 +0000)]
1.0.15.15: reset DF on x86 and x86-64 after every STD instead of when calling out
* Both the old and the new behaviour should be correct re C-ABI, but
this is much easier to audit. Thanks to Aurelien Jarno for the
initial patch.
* This should also fix the build on platforms with GCC 4.3 compiled
libc signal handling functions, which assume DF to be cleared.
** NOTE ** If kernel/libc does not arrange for DF to be cleared
before calling our handler and restore it afterwards, we can still
be broken by asynch signals on post 4.3 GCC libcs -- but this Is
Not Our Fault, We Think.
* Test-case suggested by Alistair Bridgewater for possible related
default-unknown-values problems on SunOS.
Nikodemus Siivola [Wed, 5 Mar 2008 01:48:06 +0000 (01:48 +0000)]
1.0.15.14: move bignum allocation out of line on x86-64 from MOVE-FROM-[UN]SIGNED
* Essentially port of the work done for x86 earlier (1.0.13.10.)
Shrinks the core by about 500k.
* Change the high-bits test on x86 to be clearer about what happens
(no magic numbers.)
* Fixups cannot be called directly on x86-64, so make the CALL
instruction barf on that instead of silently generating bogus code.
Nikodemus Siivola [Mon, 3 Mar 2008 20:14:24 +0000 (20:14 +0000)]
1.0.15.13: more mnemonic lambda-lists for RPLACD and RPLACA
* CONS and X instead of X and Y. I admit, I use these so seldom that
I have to check the docstring 9 times out of 10 as the lambda-list
Slime used to show was of no help.
Nikodemus Siivola [Mon, 3 Mar 2008 19:34:18 +0000 (19:34 +0000)]
1.0.15.12: better scaling in the PCL cache
* When the cache reaches its maximum size, and entries need to be
dropped, drop a random 50% of them, instead of the more
deterministic set "ones that don't fit": this avoids getting stuck
in a "add A dropping B, add B dropping A, ..." cycle which eats up
ginormous amounts of time. Additionally, dropping 50% seems to be
the best ratio -- experimentally, at least -- but it would be nice
to have a proper analysis...
Note: there is a point (possibly even before our current maximum
cache size) where the allowed probe-depth grows so large that a
tree would work better then a table. It would be good to gracefully
replace the table based cache with a tree when it grows so large.
Nikodemus Siivola [Mon, 3 Mar 2008 15:13:04 +0000 (15:13 +0000)]
1.0.15.11: one more slice of ASSOC micro-optimization
* In %ASSOC and %ASSOC-EQ, test for equality before checking if the
list element is NIL: in the common case only one element needs both
tests, and even in the rare cases (looking for NIL, list contains
several NILs) this is as fast as the old version. Common cases
improved by ~30% by this.
Now, finally, CL:ASSOC is as fast as
(defun fast-assoc (item list)
(loop for e in list
when (eq item (car e))
return e))
when the type of ITEM is known to be (OR FIXNUM (NOT NUMBER)).
* In others %ASSOC-* functions, test for existence of element only
once (the compiler should eliminate the redundant test, though, but
this is cleaner.)
Nikodemus Siivola [Mon, 3 Mar 2008 14:21:50 +0000 (14:21 +0000)]
1.0.15.10: ASSOC and MEMBER were broken for :KEY #'IDENTITY
* Regression caused by 1.0.15.9 -- SET where is should have been SETF.
* Add a few test-cases.
Nikodemus Siivola [Mon, 3 Mar 2008 01:47:53 +0000 (01:47 +0000)]
1.0.15.9: further ASSOC & MEMBER transform improvements
* Neither should be MAYBE-INLINE, as the DEFTRANSFORM result is better.
* Compile the out-of-line bodies with high SPEED, and declare a missing
LIST type.
* Add %ASSOC-EQ, %ASSOC-KEY-EQ, and the corresponding %MEMBER-
versions, and transform to these when (1) no :TEST is given, but
the item to compare against is safe for EQ (2) :TEST is given and
either 'EQ or #'EQ.
Nikodemus Siivola [Sun, 2 Mar 2008 22:38:08 +0000 (22:38 +0000)]
1.0.15.8: fix non-threaded x86 build
* Missing #!+sb-thread in src/assembly/x86/alloc.lisp.
Nikodemus Siivola [Sat, 1 Mar 2008 19:25:41 +0000 (19:25 +0000)]
1.0.15.7: threaded BIND and UNBIND improvements on x86
* TLS index allocation is rare, so move it out of line from BIND.
Shrinks the threaded core by over 170k bytes.
* Make UNBIND use three registers instead of four.
Nikodemus Siivola [Fri, 29 Feb 2008 11:04:43 +0000 (11:04 +0000)]
1.0.15.6: split main part of SUB-SERVE-EVENT into SUB-SUB-SERVE-EVENT
* Easier to understand, fixes periodic polling. Patch by Espen S
Johnsen.
* NEWS entry for 1.0.15.5. as well.
Nikodemus Siivola [Fri, 29 Feb 2008 10:41:46 +0000 (10:41 +0000)]
1.0.15.5: handler from COPY-DESCRIPTOR-TO-STREAM to check EINTR from select()
* Just return, and continue copying the next time. Reported by Vitaly
Mayatskikh on sbcl-devel.
Richard M Kreuter [Wed, 27 Feb 2008 19:03:02 +0000 (19:03 +0000)]
1.0.15.4: Fix a non-POSIX usage of find(1) in binary-distribution.sh
Fix contributed by Josh Elsasser.
Richard M Kreuter [Wed, 27 Feb 2008 18:56:47 +0000 (18:56 +0000)]
1.0.15.3: Have PROBE-FILE return NIL whenever a truename can't be found.
See the mailing list discussions during February 2008 for details.
Richard M Kreuter [Wed, 27 Feb 2008 17:33:45 +0000 (17:33 +0000)]
1.0.15.2: Add binding to fcntl's struct flock in SB-POSIX.
File by file breakdown:
* contrib/sb-posix/constants.lisp
Add an internal ALIEN-FLOCK structure.
* contrib/sb-posix/defpackage.lisp
Export the FLOCK class the accessors.
* contrib/sb-posix/interface.lisp
Define a FLOCK "protocol class", add a path through FCNTL that accepts
FLOCK instances.
* sb-posix/posix-tests.lisp
Test two uses of exclusive (F_WRLCK) locks.
* contrib/sb-posix/sb-posix.texinfo
Add documentation for the FLOCK class to the manual.
Andreas Fuchs [Wed, 27 Feb 2008 16:56:27 +0000 (16:56 +0000)]
1.0.15.1: Fix asdf-install for HTTP servers that omit the Length: header.
Make copy-stream use the output stream's element type, as the input stream
is very likely to be a bivalent stream, which will report CHARACTER, leading
to incompatible element-types.
William Harold Newman [Tue, 26 Feb 2008 14:48:27 +0000 (14:48 +0000)]
1.0.15: release, will be tagged as sbcl_1_0_15
Nikodemus Siivola [Fri, 22 Feb 2008 19:10:36 +0000 (19:10 +0000)]
1.0.14.41: record bug 423
* TRULY-THE interacts badly with *CHECK-CONSISTENCY*.
Nikodemus Siivola [Fri, 22 Feb 2008 16:54:48 +0000 (16:54 +0000)]
1.0.14.40: make deftransforms for UB<N>-BASH-COPY have consistent return type
* Make REPLACE *CHECK-CONSISTENCY* happy: the transforms used to have
return type (VALUES NULL &OPTIONAL), whereas the out-of-line
definitions had return type (VALUES &OPTIONAL).
Nikodemus Siivola [Tue, 19 Feb 2008 16:06:34 +0000 (16:06 +0000)]
1.0.14.39: make GENCGC gencgc_zero_check=1 proof again
* 0.9.8.19 moved zeroing from GC time to allocation time, but after
the point where the check was done -- thus causing the check to
fail immediately if it was turned on. This commit moves the check
after the zeroing, so we're good again.
...which also means that gencgc_zero_check=1 is not very
interesting anymore, since the zeroing happens in the immediate
vicinity of the check.
Nikodemus Siivola [Tue, 19 Feb 2008 10:18:06 +0000 (10:18 +0000)]
1.0.14.38: build runtime with -Wsign-compare, and clean warnings on x86/Linux
* Nothing serious seemed to be going on, though, but since C has nasty
signed vs unsigned comparison semantics, it is better to be clear
about what is going on.
Nikodemus Siivola [Tue, 19 Feb 2008 09:20:09 +0000 (09:20 +0000)]
1.0.14.37: detect the Windows codepage at runtime
* Using the value from the saved core is wrong. Fix by Suzuki Kei on
sbcl-devel.
Nikodemus Siivola [Mon, 18 Feb 2008 19:25:22 +0000 (19:25 +0000)]
1.0.14.36: faster PROPAGATE-FROM-SETS
20-25% improvement for the test-case in bug 188.
* New slot in LAMBDA-VAR: LAST-INITIAL-TYPE, which holds the last
initial-type for that variable seen by PROPAGATE-FROM-SETS.
* Be lazy, and don't PROPAGATE-TO-REFS unless something of
interest has happened, to wit:
-- One of the CSET nodes has a new, more specific type.
-- INITIAL-TYPE has become more specific.
This also allows us elide TYPE-UNION computation in the
uninteresting cases.
* Requires having NODE-REOPTIMIZE set when IR1-OPTIMIZE-SET
is called.
Nikodemus Siivola [Mon, 18 Feb 2008 19:14:11 +0000 (19:14 +0000)]
1.0.14.35: lift MAKE-SINGLE-VALUE-TYPE calls from loops
* Multiple places can use the same type, no need to cons
a new one each time through the loop.
Nikodemus Siivola [Mon, 18 Feb 2008 10:05:40 +0000 (10:05 +0000)]
1.0.14.34: slightly less and slightly faster constraint propagation
* For negated EQL constaints, don't cons up multiple MEMBER-TYPE
instances during a single pass through CONSTRAIN-REF-TYPE:
accumulate a single XSET, and turn it into a MEMBER-TYPE only at
the end.
* Don't construct (NOT (MEMBER ...TON-OF-SYMBOLS...)) types at all,
unless SPEED > COMPILATION speed. Knowing that a variable is not
in a set of symbols is seldom useful, and compiling large CASE
statements with symbols as keys can end up spending huge amounts
of time just building these sets.
* Adjust FD-STREAMS to use an ECASE in the single place in SBCL where
without the aforementioned constraint propagation the compiler is
not able to determine sufficiently constrain the result type. (Not
needed since the build has SPEED > COMPILATION-SPEED, but keeps
things non-brittle.)
Christophe Rhodes [Sun, 17 Feb 2008 19:06:34 +0000 (19:06 +0000)]
1.0.14.33: Resurrexit Alpha
Sort out accumulated bitrot on the Alpha:
* xrefs slot for simple_fun: a couple of places in alpha-assem.S
* arch_skip_instruction(): compilers more careful about lvalues;
* arch_handle_single_step_trap(): implement it. (Untested)
* ld-script.alpha-linux: update for newer systems.
Works For Me. Other systems may vary.
Nikodemus Siivola [Sun, 17 Feb 2008 13:26:15 +0000 (13:26 +0000)]
1.0.14.32: fix bug 407
* %SINGLE-FLOAT and %DOUBLE-FLOAT should not be flushable.
* BUGS entry remains: should (COERCE (EXPT 2 1024) 'SINGLE-FLOAT)
really signal a TYPE-ERROR?
Nikodemus Siivola [Sun, 17 Feb 2008 08:18:40 +0000 (08:18 +0000)]
1.0.14.31: better ANSI-STREAM-FILE-POSITION
* Instead of searching for the external-format object to obtain
the character-width function, store the function (or its result
for fixed-width external formats) directly into the FD-STREAM
object. Non-FD-STREAM ANSI-STREAMS use the old strategy.
Christophe Rhodes [Sat, 16 Feb 2008 10:34:45 +0000 (10:34 +0000)]
1.0.14.30: don't construct obsolete instances
The CTOR make-instance optimization machinery closes over the
class wrapper of the class in question; however, there are
code paths that cause wrappers to be invalidated without causing
all constructors to be recomputed: for instance, the
redefinition of a superclass, or calling
MAKE-INSTANCES-OBSOLETE. This would mean that the CTORs would
create obsolete instances, which would instantly trap, showing
up as slowness in CLOS-heavy code.
Problem and fix largely identified by Andy Hefner in
<http://paste.lisp.org/display/55689>.
Nikodemus Siivola [Fri, 15 Feb 2008 14:42:30 +0000 (14:42 +0000)]
1.0.14.29: update ASDF again
* ...to a version that has correct *asdf-revision*.
Nikodemus Siivola [Thu, 14 Feb 2008 16:43:08 +0000 (16:43 +0000)]
1.0.14.28: small FGEN improvements
* Use a DEFSTRUCT instead of a vector for clarity. Also eliminate the
unused mystery slot.
* Inline code of GET-NEW-FUN-GENERATOR-INTERNAL in
GET-NEW-FUN-GENERATOR.
* Store in a hash-table for O(1) goodness instead of a list.
* ENSURE-FGEN instead of MAKE-FGEN + STORE-FGEN.
* When lifting constants out of code in FGEN construction, leave
constant lists in place: several of the functions we generate FGENs
for have ETYPECASE forms, which will otherwise cause us to close
over the :EXPECTED-TYPE and :POSSIBILITIES arguments to ERROR for
no good reason.
Nikodemus Siivola [Thu, 14 Feb 2008 16:40:45 +0000 (16:40 +0000)]
1.0.14.27: rename MAKE-FIXNUM to POINTER-HASH
* Use VOP translation instead of %PRIMITIVE.
* On x86 and x86-64 improve the pointer-hash slightly: use the whole
address, but none of the tag bits in the hash.
* Fix type in INDEX-FOR-HASHING: the first argument is a HASH, not an
INDEX. Given the better quality of low bits on x86oids (and
hopefully soon on others as well), adjust the mixing a bit.
Nikodemus Siivola [Fri, 8 Feb 2008 14:16:11 +0000 (14:16 +0000)]
1.0.14.26: tweak COND slightly
* Don't expand into a final (COND), but directly to NIL (easier to
read macroexpansion.)
* Check for the common case of final T, so that the last clause can be
unconditional instead of generating redundant IF.
Nikodemus Siivola [Fri, 8 Feb 2008 12:55:54 +0000 (12:55 +0000)]
1.0.14.25: trivial WHEN & UNLESS change
* Implement directly on top of IF & PROGN instead of COND: clearer
macroexpansion, and slightly less work to compile to boot.
Nikodemus Siivola [Fri, 8 Feb 2008 12:49:02 +0000 (12:49 +0000)]
1.0.14.0.24: spell-check and proofread NEWS a bit
* ...and add the "reported by" left out from the last commit.
Nikodemus Siivola [Fri, 8 Feb 2008 12:38:15 +0000 (12:38 +0000)]
1.0.14.0.23: hash-table printing improvements
* Respect printer-control variables when printing readably.
* Print non-null weakness when printing unreadably.
Nikodemus Siivola [Wed, 6 Feb 2008 14:26:41 +0000 (14:26 +0000)]
1.0.14.22: more backtrace verbosity, for a change
* Revert part of the *SHOW-ENTRY-POINT-DETAILS* functionality: always
return the DEBUG-FUN-KIND from FRAME-CALL, so that instead of the
rather confusing
(FOO MY-ARGUMENT)
(FOO MY-ARGUMENT)
a slightly mysterious but hopefully less confusing
(FOO MY-ARGUMENT)
(FOO MY-ARGUMENT) [:EXTERNAL]
appears in backtraces where the XEP hasn't been tail-merged.
Nikodemus Siivola [Wed, 6 Feb 2008 11:46:07 +0000 (11:46 +0000)]
1.0.14.21: debugger refactoring: MAP-BACKTRACE and MAP-FRAME-ARGS
* Thanks to Attila Lendvai.
Nikodemus Siivola [Tue, 5 Feb 2008 04:09:23 +0000 (04:09 +0000)]
1.0.14.20: XSET used EQ instead of EQL for comparison
* Fix it, and add a test specifically for MEMBER using EQL.
Richard M Kreuter [Mon, 4 Feb 2008 22:55:21 +0000 (22:55 +0000)]
1.0.14.19: Fix SB-SHOW, broken for a while.
* Optimization in CONCATENATE broke SB-SHOW in the cross compiler.
Disable this optimization in SB-SHOW.
Nikodemus Siivola [Mon, 4 Feb 2008 22:14:08 +0000 (22:14 +0000)]
1.0.14.18: fix bogus STYLE-WARNING for MAKE-HASH-TABLE :SYNCHRONIZED
* Add :SYNCHRONIZED to thr DEFKNOWN.
* Also fix a bit of totally broken indentation in the
hash-table code.
* Cautionary comment about a potential type-error in parallel code.
* More threaded hash-table tests.
Nikodemus Siivola [Mon, 4 Feb 2008 20:49:27 +0000 (20:49 +0000)]
1.0.14.17: treat (NAMED-LAMBDA NIL ...) like (LAMBDA ...)
* Getting NIL as the source-name of a functional is pretty bogus, and
getting it as the debug-name messes with our careful debug-name
sanity checks. So don't do it then.
Nikodemus Siivola [Mon, 4 Feb 2008 15:40:32 +0000 (15:40 +0000)]
1.0.14.16: add explicit CHECK-CONSTANT-MODIFICATION policy
* Allows using SB-COVER with (RESTRICT-COMPILER-POLICY 'SAFETY 3).
Nikodemus Siivola [Mon, 4 Feb 2008 15:11:35 +0000 (15:11 +0000)]
1.0.14.15: fix typo in inline declaration for SOURCE-FORM-HAS-PATH-P
* Thanks to Peter Graves.
Nikodemus Siivola [Sun, 3 Feb 2008 20:05:54 +0000 (20:05 +0000)]
1.0.14.14 fix SB-POSIX:MK*TEMP() tests
* BSD may be happy with just three Xs in the template, but Linux at
least wants six.
Juho Snellman [Sun, 3 Feb 2008 18:36:18 +0000 (18:36 +0000)]
1.0.14.13: Rewrite non-standard LOOP syntax
* Using XCL as the host compiler did not work due to a FOR/WHILE/FOR
sequence (which is not defined in the spec, though supported by
most implementations). Reported by Peter Graves.
Nikodemus Siivola [Sun, 3 Feb 2008 01:20:43 +0000 (01:20 +0000)]
1.0.14.12: export SB-POSIX:MKSTEMP, add SB-POSIX:MKTEMP and SB-POSIX:MKDTEMP
* Remove the alien struct consing from the calls -- just use the SAP
directly.
* Automagic unsupportedness handling for platforms that miss any of
these.
* Rudimentary tests.
* #-win32 for now.
Nikodemus Siivola [Sun, 3 Feb 2008 00:52:00 +0000 (00:52 +0000)]
1.0.14.11: update ASDF to 1.114 from CCLAN
* On the ASDF side of the wall merge the empty SBCL_HOME handling to
upstream, and canonicalize the whitespace there.
Nikodemus Siivola [Fri, 1 Feb 2008 11:15:34 +0000 (11:15 +0000)]
1.0.14.10: friendly CHECK-TYPE error message for quoted type-specifiers
* (QUOTE ...) is never a valid type-specifier.
* When printing the macro-form responsible for an error, increase
*PRINT-LEVEL* from 1 to 3, for a slightly better compiler-log
reading experience.
Richard M Kreuter [Thu, 31 Jan 2008 19:29:24 +0000 (19:29 +0000)]
1.0.14.9: Fix regression in RUN-PROGRAM when :INPUT et al. are pathnames.
* GET-DESCRIPTOR-FOR is defined with &rest, &key, and
&allow-other-keys, and one pathway passes the &rest list to OPEN. A
recent addition of a keyword argument to GET-DESCRIPTOR-FOR that
OPEN didn't recognize created a problem.
* Add test for the correct behavior.
Nikodemus Siivola [Thu, 31 Jan 2008 13:04:30 +0000 (13:04 +0000)]
1.0.14.8: small TRACE and UNTRACE interface improvements
* (TRACE "FOO") now traces SETF-functions as well.
* (UNTRACE "FOO") is now supported.
Nikodemus Siivola [Thu, 31 Jan 2008 07:22:16 +0000 (07:22 +0000)]
1.0.14.7: quote non-keyword :default-initargs keys in SLOT-INIT-FORMS
* Reported and diagnosed by Matt Marjanovic.
Nikodemus Siivola [Tue, 29 Jan 2008 14:21:59 +0000 (14:21 +0000)]
1.0.14.6: SIMPLE-REFERENCE-ERROR, not SIMPLE-REFERENCE-CONDITION
* Bogus export, reported by Attila Lendvai.
* Fix the test-case to check that the condition type is sane, which
would have caught this in the first place.
Nikodemus Siivola [Tue, 29 Jan 2008 14:08:27 +0000 (14:08 +0000)]
1.0.14.5: fix threaded builds
* Broken by 1.0.14.1: LET*, not LET in MAKE-THREAD now.
Nikodemus Siivola [Tue, 29 Jan 2008 13:56:19 +0000 (13:56 +0000)]
1.0.14.4: increase MAX_INTERRUPTS to 1024
* ...hopefully fixing Stumpwm, and other signal-prone applications.
Nikodemus Siivola [Tue, 29 Jan 2008 13:20:19 +0000 (13:20 +0000)]
1.0.14.3: add html -> htm abbreviation to wxs.lisp
* Now that SB-COVER is working on Windows, this is required as the
build leaves html files in the test-output/ directory.
...of course we should probably clean up after the tests...
Reported by Charlie McMackin.
Nikodemus Siivola [Tue, 29 Jan 2008 12:51:26 +0000 (12:51 +0000)]
1.0.14.2: XREF needs to account for the last node of a block as well
* ...as it can be eg. a CSET node. Reported by "mogunus" on #lisp.
Lest readers of sbcl-commits start thinking that #lisp is the best
place to report bugs: it is not. This got immediate attention as I
was working in closely related areas anyways.
sbcl-devel and sbcl-help remain the correct place to report bugs.
Nikodemus Siivola [Mon, 28 Jan 2008 15:10:54 +0000 (15:10 +0000)]
1.0.14.1: lisp-side interrupt handling improvements
* Stack-top hint for interrupts: clears the uninteresting frames from
the top of a SIGINT backtrace.
* Revert to a defunless WITHOUT-INTERRUPTS &co: less useless
interrupt twiddling frames in backtraces -- now there should only
be occasional #:WITHOUT-INTERRUPTS-BODY frames, and those only when
there is at least something moderately interesting going on. There
is a balance to be struck here, though, and this may be too far in
the opposite direction...
* Interrupt safe SORT.
* ADJUST-ARRAY doesn't need to disable interrupts anymore.
* Handle internal errors using WITH-INTERRUPT-BINDINGS as well: with
sufficently bad luck one could eg. signal a continuable error (via
the internal error code-path) from eg . :KEY to SORT and then
corrupt the temporary vector in handler. It seems also possible to
construct a similar case that would cause bogus metacircles to be
detected -- this is easier to reason about.
William Harold Newman [Sun, 27 Jan 2008 22:33:07 +0000 (22:33 +0000)]
1.0.14: release, will be tagged as sbcl_1_0_14
Richard M Kreuter [Wed, 23 Jan 2008 14:42:36 +0000 (14:42 +0000)]
1.0.13.53: Minor changes to SB-COVER, SB-MD5 tests for Win32
* Have SB-COVER use md5sums of filenames for URLs.
* Have the test of SB-MD5:MD5SUM-FILE take the md5sum of a fresh empty
file, rather /dev/null or NUL, so that the test is independent of
any other limitations in CL:OPEN on Windows.
Richard M Kreuter [Wed, 23 Jan 2008 01:43:38 +0000 (01:43 +0000)]
1.0.13.52: Fix typo in bit-vector.impure-cload.lisp
* Test file didn't compile under #-gencgc builds.
Richard M Kreuter [Tue, 22 Jan 2008 17:14:31 +0000 (17:14 +0000)]
1.0.13.51: Fixups in mkstemp wrapper used in RUN-PROGRAM.
* Preclude a buffer overflow (though one that cannot occur at present,
given the single caller of this routine). Contributed by Alex
Plotnick.
Nikodemus Siivola [Mon, 21 Jan 2008 14:46:52 +0000 (14:46 +0000)]
1.0.13.50: rename JECXZ to JRCXZ in the x86-64 backend for clarity
* Thanks to Lutz Euler. (No 32 bit variant of the instruction in
64-bit mode.)
Nikodemus Siivola [Mon, 21 Jan 2008 14:44:45 +0000 (14:44 +0000)]
1.0.13.49: save source-locations for accessor methods defined via DEFCLASS
* Just pass source-location / definition-source along the necessary
code-paths -- all the required infra is already in place.
* Also get the source locations for PCL itself: it would be embarassing
not to have the source location for SB-PCL::DEFINITION-SOURCE. :)
Nikodemus Siivola [Mon, 21 Jan 2008 14:43:15 +0000 (14:43 +0000)]
1.0.13.48: SET-CLOSED-FLAME set ANSI-STREAM-IN twice (harmless but silly)
* Thanks to David Smith.
Nikodemus Siivola [Mon, 21 Jan 2008 14:41:57 +0000 (14:41 +0000)]
1.0.13.47: spurious INLINE declaration for (SETF FOO) from typed DEFSTRUCT
* Thanks to David Smith.
Nikodemus Siivola [Mon, 21 Jan 2008 14:40:54 +0000 (14:40 +0000)]
1.0.13.46: fixed bug #402
* Rewrite SPLIT-DECLARATIONS to use two (short) constant lists and
INFO instead of *VAR-DECLARATIONS-WITH|WITHOUT-ARG*.
* Test-case for #402.
* While at it, replace the *VAR-DECLARATIONS* from walker as well,
replacing it with WALKED-VAR-DECLARATION-P, and make VAR-DECLARATION
use a compiler-macro to check for bogus-declarations when possible.
(All our whopping 3 calls to it.)
* Bug #413 was fixed in 1.0.13, remove it from BUGS.
* Whitespace.
Nikodemus Siivola [Wed, 16 Jan 2008 15:46:22 +0000 (15:46 +0000)]
1.0.13.45: close the fd before deleting / moving files on CLOSE :ABORT T
* Windows is not happy about files with open handles dancing around.
This should one of the SB-COVER problems on Windows, and is
arguably better for posixoid platforms as well.
* SET-CLOSED-FLAME immediately after closing the fd, since that is in
a very real sense the boundary after which doing stream operations
is going to lose.
* Windows additions to .gitignore.
Nikodemus Siivola [Tue, 15 Jan 2008 23:55:51 +0000 (23:55 +0000)]
1.0.13.44: bug #414 has disappeared
* Most likely due to changes in debug instrumentation. :/
Add to regression suite, in case it comes back.
Nikodemus Siivola [Tue, 15 Jan 2008 23:24:04 +0000 (23:24 +0000)]
1.0.13.43: DIVIDE-BY-ZERO from BIGNUM-TRUNCATE
* Pre 1.0.6.19 version ended up calling %FLOOR, and all was well. Now
we need to check explicitly for zero. Reported by Michael Weber.
Nikodemus Siivola [Tue, 15 Jan 2008 22:13:21 +0000 (22:13 +0000)]
1.0.13.42: character untagging test from Lutz Euler
sbcl-devel 2007-05-01
Nikodemus Siivola [Tue, 15 Jan 2008 18:25:55 +0000 (18:25 +0000)]
1.0.13.41: SB-SPROF:REPORT when there are no samples
* Used to signal an error -- report lack of samples, and return NIL
instead. Reported by Andy Hefner on sbcl-devel 2008-01-06.
Nikodemus Siivola [Tue, 15 Jan 2008 18:10:45 +0000 (18:10 +0000)]
1.0.13.40: CLASS-SLOTS signals an error for unfinalized classes
* AMOP requirement, reported by Levente Meszaros on
sbcl-devel 2007-04-20.
* New condition class for convenience:
SB-INT:SIMPLE-REFERENCE-ERROR.
Nikodemus Siivola [Tue, 15 Jan 2008 15:26:08 +0000 (15:26 +0000)]
1.0.13.39: record bug #421
* Unchecked RETURN reported by Kevin Reid.
Nikodemus Siivola [Tue, 15 Jan 2008 14:50:27 +0000 (14:50 +0000)]
1.0.13.38: final part of the debug-name improvements
* Use NAME-LAMBDALIKE to construct the debug-name if :NAME is NIL.
* Also make sure the SOURCE-NAME is not NIL, but .ANONYMOUS. if none
is provided.
* Correct handling of &OPTIONAL-PROCESSOR debug-names: the debug-name
keyword is provided by the callers, so we cannot default it as part
of the keyword parsing (in case it is NIL), additionally, even if
we have a debug-name already, we still want to make up an
&OPTIONAL-PROCESSOR debug-name.
* Ensure (and strategically AVER) that we have a non-null debug-name
for things which are .ANONYMOUS. -- by making up one using
NAME-LAMBDALIKE if nothing else.
* AVER that the second argument of DEBUG-NAME is not NIL.
* Test that (COMPILE NIL '(LAMBDA ...)) doesn't make function which
backtrace as NIL anymore.
Nikodemus Siivola [Tue, 15 Jan 2008 13:28:46 +0000 (13:28 +0000)]
1.0.13.37: skip compilation of null and non-symbol toplevel atoms
* Not a performance consideration, but rather part of tidying up code
paths that lead DEBUG-NAME to be called with NIL as the second
argument (in IR1-TOPLEVEL the form becomes part of the
TOP-LEVEL-FORM debug-name.)
Nikodemus Siivola [Tue, 15 Jan 2008 12:25:54 +0000 (12:25 +0000)]
1.0.13.36: better HAIRY-FUNCTION-ENTRY debug-names
* Instead of LVAR-FUN-NAME, use new LVAR-FUN-DEBUG-NAME, which works
even for multiply-used lvars, by returning the list of names
instead of just NIL.
Nikodemus Siivola [Tue, 15 Jan 2008 11:59:30 +0000 (11:59 +0000)]
1.0.13.35: preserve source- and debug-name in IR1-OPTIMIZE-MV-CALL
* Copying them from the original leaf before converting the
replacement function.
Nikodemus Siivola [Tue, 15 Jan 2008 11:17:27 +0000 (11:17 +0000)]
1.0.3.34: better debug-name construction
* Make *DEBUG-NAME-LEVEL* behave more like *PRINT-LEVEL*, and add
*DEBUG-NAME-LENGTH*. Now, instead of the old
(VARARG-ENTRY (LAMBDA (&OPTIONAL ("#<...>" . "#<...>") . "<...>")))
we get
(VARARG-ENTRY (LAMBDA (&OPTIONAL (FOO *BAR*) (QUUX *ZOT*)))
which is a lot more useful.
* Use slightly magical debug name markers that print as # and ...
instead of strings when abbreviating names.
Nikodemus Siivola [Tue, 15 Jan 2008 02:45:15 +0000 (02:45 +0000)]
1.0.3.33: use NAMED-LAMBDA instead of LAMBDA for pretty-printer predicates
* AKA less mysterious (LAMBDA (OBJECT)) potential in statistical
profiling &co. (No, I haven't been overly troubled by such functions,
but since it is easy to give these ones names, we just as well may.)
Nikodemus Siivola [Tue, 15 Jan 2008 02:29:50 +0000 (02:29 +0000)]
1.0.13.32: fix run-sbcl.sh when sh != bash in disguise
...2008! Shell portability issues! AAARGH!
(Ok, slightly embarrassed as well.)
Nikodemus Siivola [Mon, 14 Jan 2008 12:41:43 +0000 (12:41 +0000)]
1.0.13.31: update bug #108 (ROOM issues)
* 1.0.3.21 took care of the (SAP= CURRENT END) aver failure, but
other issues remain.
Nikodemus Siivola [Mon, 14 Jan 2008 12:22:11 +0000 (12:22 +0000)]
1.0.13.30: more README touchups
* Texinfo, not DocBook since late 2004. :) We're fast on things
like this.
* HTML available for download, not part of the normal binary
distribution.
* Mention BUGS.
* PURIFY doesn't happen on x86 Darwins, and I've never had to touch
the limits on PPC either -- so delete that bit.
Nikodemus Siivola [Mon, 14 Jan 2008 12:05:32 +0000 (12:05 +0000)]
1.0.13.29: run-sbcl.sh script
* I'm tired of typing the mantra, and it's probably good to make
it easy for users too to run SBCL before installation.
* Add to binary tarball, and mention in INSTALL.
Alexey Dejneka [Sun, 13 Jan 2008 20:39:21 +0000 (20:39 +0000)]
1.0.13.28: Add OPTIMIZE documentation for SBCL-specific optimize qualities.
Nikodemus Siivola [Sun, 13 Jan 2008 18:08:01 +0000 (18:08 +0000)]
1.0.13.27: commentary on BUG #420
...adapted from sbcl-devel.
Kevin Rosenberg [Sun, 13 Jan 2008 03:59:54 +0000 (03:59 +0000)]
1.0.13.26:
* sb-aclrepl: Display single-floats in IEEE-756 format for 64-bit
platforms for consistency with 32-bit platforms.
Nikodemus Siivola [Sat, 12 Jan 2008 15:29:02 +0000 (15:29 +0000)]
1.0.13.25: reinstante *PERIODIC-POLLING-FUNCTION*
* Instead of *MAX-EVENT-(U)SEC* use *PERIODIC-POLLING-PERIOD*.
* After polling, if there is any more waiting left to do, call
SUB-SERVE-EVENT again. (The old implementation did not do this,
but this seems right to me.)
* Export the API, and mark as EXPERIMENTAL. Unadvertised in the docs
or NEWS for now -- but the docstrings should be clear enough.
Waiting for happiness report from CLG folks before publishing this.
Kevin Rosenberg [Fri, 11 Jan 2008 18:59:58 +0000 (18:59 +0000)]
1.0.13.24:
* sb-aclrepl: Fix inspection of single-floats on 64-bit platforms
which are now unboxed data.
Nikodemus Siivola [Fri, 11 Jan 2008 11:03:18 +0000 (11:03 +0000)]
1.0.13.23: record READ-CHAR-NO-HANG bug on Windows (#421)
* Reported by Elliot Slaughter.
William Harold Newman [Thu, 10 Jan 2008 15:54:04 +0000 (15:54 +0000)]
1.0.13.22: text tweaks
* logged a bug
* searched for sbcl-devel references and added notes about
the need to subscribe (since the mailman bounce message is
particularly unhelpful, and I periodically get mail from
frustrated would-be posters)
* fixed a few typoes
* revised a few passages, and completely gave up on trying to
summarize SBCL performance in a paragraph in the man page
Nikodemus Siivola [Thu, 10 Jan 2008 14:41:27 +0000 (14:41 +0000)]
1.0.13.21: MAP-ALLOCATED-OBJECTS robustification
* There are two cases where we used to fail our AVER (SAP= CURRENT
END) in MAP-ALLOCATED-OBJECTS:
-- If we had constructed an unlucky bogus object or few during our
heap traversal, we might be just sufficiently out of synch to
overstep it.
-- If we allocated new objects past the original END during heap
traversal and, and the mapped over them.
* Fix the last case always: before calling the provided function,
check that the object ends before END.
* Fix the second case for fastidious callers (and add an optional
argument so callers can inform us about their fastidiousness) by
using MAKE-LISP-OBJ instead of %MAKE-LISP-OBJ. ROOM still uses the
old version, since the careful approach is too slow, and even
the slow path uses %MAKE-LISP-OBJ in the less-error-prone cases.
...so not quite perfect yet.
Nikodemus Siivola [Thu, 10 Jan 2008 11:32:46 +0000 (11:32 +0000)]
1.0.13.20: added SB-EXT:*EXIT-HOOKS*
* Also document *INIT-HOOKS* and *SAVE-HOOKS*.
* Trailing whitespace cleanup in start-stop.texinfo.
Richard M Kreuter [Thu, 10 Jan 2008 01:48:12 +0000 (01:48 +0000)]
1.0.13.19: Odds and ends (OpenBSD NEWS, minor bug in PROBE-FILE, mkstemp())
* Add note about OpenBSD revival in NEWS
* PROBE-FILE, TRUENAME were returning an extra value from filename parsing
* Have our internal mkstemp() binding take a mode, and remove
unix-chmod from sb-unix. This slightly improves RUN-PROGRAM
security on Unix platforms where mkstemp() doesn't create a new file
with mode #o0600.
Richard M Kreuter [Wed, 9 Jan 2008 19:12:23 +0000 (19:12 +0000)]
1.0.13.18: Revived OpenBSD support, contributed by Josh Elsasser
Alexey Dejneka [Sun, 6 Jan 2008 06:17:26 +0000 (06:17 +0000)]
1.0.3.17: new bug in DX value-cells.
Richard M Kreuter [Sat, 5 Jan 2008 14:43:13 +0000 (14:43 +0000)]
1.0.13.16: Fix regression in FILE-AUTHOR.
* Typo. File author should return the author, not the file write-date.
Spotted by Damien Diederen. Add test for same.
Juho Snellman [Fri, 4 Jan 2008 01:52:28 +0000 (01:52 +0000)]
1.0.13.15: Fix some VECTOR-PUSH-EXTEND problems
* Ensure that the vector is always extended by at least one element
when full, even if MIN-EXTENSION is smaller than 1. (Prevents
array index overflows).
* Don't try to extend a vector beyond ARRAY-DIMENSION-LIMIT.
* Patch by Paul Khuong.
Juho Snellman [Fri, 4 Jan 2008 01:49:37 +0000 (01:49 +0000)]
1.0.13.14: Reduce character stream input consing
* Inline UNIX-READ into REFILL-INPUT-BUFFER to remove SAP boxing,
remove non-local exits over full call boundaries (patch by Paul
Khuong).
* Inline REFILL-BUFFER in READ-SEQUENCE and READ-LINE.
* D-X-allocate value cells in REFILL-INPUT-BUFFER.