You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mutable.Queue is implemented by inheriting mutable.MutableList.
when an element is enqueued into an empty mutable.Queue, mutable.MutableList modifies the
first and last member variables to the only element in the queue. the dequeue method in mutable.Queue does not modify the value of last, so the queue holds onto the reference of the now dequeued element, which is a space-leak.
The text was updated successfully, but these errors were encountered:
mutable.Queue is implemented by inheriting mutable.MutableList.
when an element is enqueued into an empty mutable.Queue, mutable.MutableList modifies the
first and last member variables to the only element in the queue. the dequeue method in mutable.Queue does not modify the value of last, so the queue holds onto the reference of the now dequeued element, which is a space-leak.
The text was updated successfully, but these errors were encountered: