A word of caution: I've made very similar arguments in the past, and more often then not, it has come back to bite me on the ass afterwards. Hopefully your kluge will work though. :)
Hmm... What happens if the object we are returning from is already destructed? In that case, program will be freed directly from really_free_pike_frame, won't it?
/ Fredrik (Naranek) Hubinette (Real Build Master)
Previous text:
2003-08-09 01:02: Subject: Machine code efficiency
I checked in the delay-past-destruct_objects_to_destruct kludge yesterday and I think it'll do. Afterall, there has been no 100% guarantee that the current object is destructed immediately at return anyway, since the destruct_objects_to_destruct call only has been made if there are things to pop on the stack.
/ Martin Stjernholm, Roxen IS