更新时间:2022-10-15 20:31:29
Garbage collection handles objects. What you have is a primitive local variable a which will be allocated on the stack.
a
Therefore the whole premise of this question is wrong.
GC并在for循环中分配值