roxen.lists.pike.general

Subject Author Date
MutexKeys, garbage collectors, destructors and optimisers Mirar @ Pike importmöte för m <6341[at]lyskom[dot]lysator[dot]liu[dot]se> 01-02-2009
A guess would be to avoid tail recursion.

int fun()
{
  object key=keymaker();
  ...
  return some_call();
}

would probably give a tail recursion optimization, releasing the local
variables of the function fun() first and then call some_call(),
dropping fun()'s stackframe before calling.

Interesting problem. Is the optimizer in the wrong here, since it
breaks the normal way of handling locks in Pike?