LiveOverflow · youtube · en
1Overwriting the toString() method to set array references to null and a 'stale' property to null causes the garbage collector to free the array.
“It first sets the reference to the array we just created to null, as well as setting another property to null. In a second you will see that this "stale" property is also a reference to the arr array.”
spoken · 412s · 2017-03-13
LiveOverflow · youtube · en
2The stale property of an object points to a previously allocated array memory, and despite being set to null, the reference persists due to an internal failure in property checking.
“Theoretically the stale property was set to null, and should not be accessible. But somehow the reference is still there.”
spoken · 523s · 2017-03-13