练习题
ALLOCATE-OBJECT()
1 if free = NIL
2 then error "out of space"
3 else x <- free
4 free <- A[x+1]
5 return x
FREE-OBJECT(x)
1 A[x+1] <- free
2 free <- xLast updated
ALLOCATE-OBJECT()
1 if free = NIL
2 then error "out of space"
3 else x <- free
4 free <- A[x+1]
5 return x
FREE-OBJECT(x)
1 A[x+1] <- free
2 free <- xLast updated