Changeset 5403


Ignore:
Timestamp:
Oct 23, 2006, 4:22:14 AM (18 years ago)
Author:
Gary Byers
Message:

%HEAP-BYTES-ALLOCATED: don't add "current" allocation if nothing's reserved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-0/X86/x86-misc.lisp

    r5371 r5403  
    176176
    177177(defx86lapfunction %heap-bytes-allocated ()
     178  (movq (@ (% :rcontext) x8664::tcr.save-allocptr) (% temp1))
    178179  (movq (@ (% :rcontext) x8664::tcr.last-allocptr) (% temp0))
    179   (movq (@ (% :rcontext) x8664::tcr.save-allocptr) (% temp1))
     180  (cmpq ($ -16) (% temp1))
    180181  (movq (@ (% :rcontext) x8664::tcr.total-bytes-allocated) (% imm0))
     182  (jz @go)
    181183  (movq (% temp0) (% temp2))
    182184  (subq (% temp1) (% temp0))
Note: See TracChangeset for help on using the changeset viewer.