new algorithm for stack cache garbage collection
put thread_context on the stack. simplify.
Merge branch 'master' into http_streaming