Re:Police Cannot Seize Property Indefinitely After an Arrest...
by OutOfHere on Sunday August 18, 2024 @03:18PM
(#41284678)
Apologies, but the point was that a GC will never unjustly take your memory from you without a well-defined rule. It may delay in taking it away, but if it does, it will be very clear why it did.
But, different implementations of the same language and different versions of those implementations can all do different things. GC rarely says exactly when something will be collected. Only that it will eventually.
Example: https://jsfiddle.net/8cej4tpk/2/
Firefox GCs after about 8 seconds, Safari GCs immmediately, Chrome never (probably not until there's pressure). And, you'll find different behavior if you go check different versions of those browsers.