From: Benjamin L. <ben...@cm...> - 2008-12-04 20:53:15
|
On Dec 4, 2008, at 4:07 AM, Nikodemus Siivola wrote: > On Thu, Dec 4, 2008 at 9:19 AM, Nikodemus Siivola > <nik...@ra...> wrote: > >> (+ (+ 253304736 1350800224 2643916288 38076416) ; Alloc >> (+ 647264 2780320 5376512)) ; Waste >> >> ; => 4294901760, which is #xFFFF0000 > > ...which is (ldb (byte 32 0) (lognot (- gencgc-page-size 1))) ; using > your settings > > and we have > > dynamic_space_size &= ~(PAGE_BYTES-1); > > in the runtime, where PAGE_BYTES is a literal constant without an L > suffix. I don't see it on this box, but presumably the C compiler is > allowed to truncate the dynamic-space-size to 32 bits there? Hm - I'm not sure about that. > The attached patch should fix this. Does it make a difference for you? I apologize, I haven't applied a "patch" file in a few years. I tried applying the patch to the 1.0.22 source, and I get the output below. It says "failed" a couple times, so I'm not sure if it really worked. Am I patching the correct source tree, and/or using the correct command? sbcl-1.0.22-source> patch -p1 < 0001-export-page-sizes-to-C-with-LU- suffix.patch patching file contrib/sb-sprof/sb-sprof.lisp patching file doc/internals-notes/GENCGC-PORTING-NOTES patching file package-data-list.lisp-expr patching file src/code/linux-os.lisp patching file src/code/room.lisp patching file src/code/toplevel.lisp patching file src/compiler/alpha/backend-parms.lisp patching file src/compiler/early-backend.lisp patching file src/compiler/generic/genesis.lisp Hunk #3 FAILED at 2693. 1 out of 9 hunks FAILED -- saving rejects to file src/compiler/generic/ genesis.lisp.rej patching file src/compiler/generic/vm-ir2tran.lisp patching file src/compiler/hppa/backend-parms.lisp patching file src/compiler/mips/backend-parms.lisp patching file src/compiler/ppc/backend-parms.lisp patching file src/compiler/sparc/backend-parms.lisp patching file src/compiler/x86-64/backend-parms.lisp Hunk #1 FAILED at 33. 1 out of 1 hunk FAILED -- saving rejects to file src/compiler/x86-64/ backend-parms.lisp.rej patching file src/compiler/x86/backend-parms.lisp patching file src/runtime/gc.h patching file src/runtime/gencgc.c Hunk #1 succeeded at 464 (offset -43 lines). patching file src/runtime/linux-os.c patching file src/runtime/thread.h sbcl-1.0.22-source> > > > Cheers, > > -- Nikodemus > <0001-export-page-sizes-to-C-with-LU-suffix.patch> |