allocation check was still incorrect when the ap+size overflows and
shows up to be less than the end of allocation pointer.
This commit is contained in:
parent
7f0f127081
commit
b74e3976df
Binary file not shown.
|
@ -487,11 +487,13 @@
|
||||||
(define (alloc-check size)
|
(define (alloc-check size)
|
||||||
(E (make-shortcut
|
(E (make-shortcut
|
||||||
(make-conditional ;;; PCB ALLOC-REDLINE
|
(make-conditional ;;; PCB ALLOC-REDLINE
|
||||||
(make-primcall 'u<=
|
(make-primcall '>=
|
||||||
(list (make-primcall 'int+ (list apr size))
|
(list (make-primcall 'int-
|
||||||
(make-primcall 'mref
|
(list
|
||||||
(list pcr
|
(make-primcall 'mref
|
||||||
(make-constant pcb-allocation-redline)))))
|
(list pcr (make-constant pcb-allocation-redline)))
|
||||||
|
apr))
|
||||||
|
size))
|
||||||
(make-primcall 'nop '())
|
(make-primcall 'nop '())
|
||||||
(make-primcall 'interrupt '()))
|
(make-primcall 'interrupt '()))
|
||||||
(make-funcall
|
(make-funcall
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1488
|
1489
|
||||||
|
|
Loading…
Reference in New Issue