This commit is contained in:
parent
624b9e86a1
commit
6b133a720e
5
new.arc
5
new.arc
|
@ -12,8 +12,3 @@
|
|||
((3 integer) <- literal 1)
|
||||
((Root_allocator_pointer integer) <- add (Root_allocator_pointer integer) (3 integer))
|
||||
(reply (2 integer-address)))
|
||||
; tests to express:
|
||||
; every call increments the pointer
|
||||
; no other function can increment the pointer
|
||||
; no later clause can increment the pointer after this base clause
|
||||
; multiple threads/routines can't call the allocator at once
|
||||
|
|
|
@ -19,3 +19,8 @@
|
|||
(prn "F - 'new' increments allocator pointer"))
|
||||
(if (~iso memory*.Allocator_start 34)
|
||||
(prn "F - 'new' returns old location"))
|
||||
|
||||
; other tests to express:
|
||||
; no other function can increment the pointer
|
||||
; no later clause can increment the pointer after this base clause
|
||||
; multiple threads/routines can't call the allocator at once
|
||||
|
|
Loading…
Reference in New Issue