ROOM dynamic space usage wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Medium
|
Unassigned |
Bug Description
ROOM reports the wrong value for dynamic space usage on 64-bit platforms
when the size of the heap is large. Example is below. I've attached a patch
that fixes the problem.
bob
==========
SBCL 1.0.52
Linux paradicsom.
(:ASDF2 :ASDF :ASDF-UNIX :SB-XREF-
:SB-DOC :SB-TEST :SB-LDB :SB-PACKAGE-LOCKS :SB-UNICODE :SB-EVAL
:SB-SOURCE-
:LARGEFILE :GENCGC :STACK-
:LINKAGE-TABLE :COMPARE-
:RAW-INSTANCE-
:STACK-
:CYCLE-COUNTER :COMPLEX-FLOAT-VOPS :FLOAT-EQL-VOPS :INLINE-CONSTANTS
:MEMORY-
:OS-PROVIDES-
:OS-PROVIDES-
==========
BOB> (defvar *foo* (make-array 10000000000 :element-type '(unsigned-byte 8)))
*FOO*
BOB> (room)
Dynamic space usage is: 1,474,253,424 bytes. <--- WRONG VALUE
Read-only space usage is: 6,352 bytes.
Static space usage is: 4,064 bytes.
Control stack usage is: 9,392 bytes.
Binding stack usage is: 1,040 bytes.
Control and binding stack usage is for the current thread only.
Garbage collection is currently enabled.
Breakdown for dynamic space:
10,000,316,512 bytes for 3,266 simple-
63,904,272 bytes for 1,142,287 other objects.
10,064,220,784 bytes for 1,145,553 dynamic objects (space total.)
Changed in sbcl: | |
assignee: | nobody → Nikodemus Siivola (nikodemus) |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
commit 408ed62925d643c 163f0e9fc7b3fd4 1cce65fbea
Author: Robert Brown <email address hidden>
Date: Sun Oct 30 13:44:33 2011 +0200
fix GENCGC DYNAMIC-USAGE on 64-bit platforms
Fixes lp#881445.