* Fixed a bug in the GC that caused performance to degrade when
ik_alloc extends the heap (by 128KB) and the heap size remains set to that value (causing more frequent GCs than usual). Now, after ik_collect, if the heapsize is less than 4MB, it's extended to 4MB (minimum).
This commit is contained in:
Binary file not shown.
@@ -250,7 +250,9 @@
|
||||
(error 'fxarithmetic-shift "~s is not a fixnum" y))
|
||||
(if ($fx>= y 0)
|
||||
($fxsll x y)
|
||||
($fxsra x ($fx- 0 y)))))
|
||||
(if ($fx< x -100) ;;; arbitrary number < (fixnum-width)
|
||||
($fxsra x 32)
|
||||
($fxsra x ($fx- 0 y))))))
|
||||
|
||||
(define (fxpositive? x)
|
||||
(if (fixnum? x)
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
|
||||
(library (ikarus singular-objects)
|
||||
(export base-rtd eof-object void)
|
||||
(export base-rtd eof-object void #;fixnum-width)
|
||||
(import
|
||||
(rename (ikarus system $records) (base-rtd sys:base-rtd))
|
||||
(rename (ikarus)
|
||||
(void sys:void)
|
||||
#; (fixnum-width sys:fixnum-width)
|
||||
(eof-object sys:eof-object)))
|
||||
|
||||
(define (void) (sys:void))
|
||||
#; (define (fixnum-width) (sys:fixnum-width))
|
||||
(define (eof-object) (sys:eof-object))
|
||||
(define (base-rtd) (sys:base-rtd)))
|
||||
|
||||
|
||||
@@ -459,6 +459,7 @@
|
||||
[fxarithmetic-shift i]
|
||||
[fxmin i]
|
||||
[fxmax i]
|
||||
[fixnum-width i]
|
||||
|
||||
[for-each i r]
|
||||
[map i r]
|
||||
|
||||
@@ -545,6 +545,15 @@
|
||||
[(P x) (tag-test (T x) fixnum-mask fixnum-tag)]
|
||||
[(E x) (nop)])
|
||||
|
||||
;(define-primop foo safe
|
||||
; [(V) (K 0)])
|
||||
|
||||
;(define-primop fixnum-width safe
|
||||
; [(V) (K 0)] ;(K (fxsll (- (* wordsize 8) fx-shift) fx-shift))]
|
||||
; ;[(E) (nop)]
|
||||
; ;[(P) (K #t)]
|
||||
; )
|
||||
|
||||
(define-primop $fxzero? unsafe
|
||||
[(P x) (prm '= (T x) (K 0))]
|
||||
[(E x) (nop)])
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
(define fixnum-mask 3))
|
||||
|
||||
(module primops (primop? get-primop set-primop!)
|
||||
|
||||
(define cookie (gensym))
|
||||
(define (primop? x)
|
||||
(and (getprop x cookie) #t))
|
||||
|
||||
Reference in New Issue
Block a user