3 ms·
The first few lines of pop() are: mytop <- top.get() curr <- mytop while curr != sentinel do mark <- curr.mark.getAndSet(true) ... What's keepin
by nemetroid 10y ago
The first few lines of pop() are:
mytop <- top.get()
curr <- mytop
while curr != sentinel do
mark <- curr.mark.getAndSet(true)
...
What's keeping curr from becoming a dangling pointer if the size of the stack is bounded?