Is a fill pointer affect the GC?

If I have this structure:

(defstruct foo
  (x 0 :type 'fixnum))

and this array:

(defvar arr (make-array 0 :element-type 'foo :adjustable t :fill-pointer 0))

and then follow these steps:

(vector-push-extend (make-foo) arr)
(setf (fill-pointer arr) 0)

Is the fooarray now a candidate for GC?

I understand from CLHS that it is not active , but I am not sure about the values ​​of this state.

+4
source share
1 answer

, , . , , ARRAY-PUSH ( , , ), .

, AREF :

AREF . AREF , , .

+9

Source: https://habr.com/ru/post/1624622/


All Articles