gpl这本书中这段话应该如何理解?
2.3.4 LIFETIME OF VARIABLES<br>
... ...<br>
Garbage collection is a tremendous help in writing correct programs, but it does not relieve you of the burden of thinking about memory. You don’t need to explicitly allocate and free memory, but to write efficient programs you still need to be aware of the lifetime of variables. For example, keeping unnecessary pointers to short-lived objects within long-lived objects, especially global variables, will prevent the garbage collector from reclaiming the short-lived objects.
有疑问加站长微信联系(非本文作者)