]> gitweb.factorcode.org Git - factor.git/commitdiff
vm: walk stack on inline_cache_miss if PIC_DEBUG=1
authorJoe Groff <arcata@gmail.com>
Wed, 21 Dec 2011 21:24:35 +0000 (13:24 -0800)
committerJoe Groff <arcata@gmail.com>
Wed, 21 Dec 2011 21:24:35 +0000 (13:24 -0800)
Reveals inline cache stack coherency bug behind #460

vm/inline_cache.cpp

index 4f1e907d7f474c231816dd38a71ede45c10cd6bf..1f06cf3a1550ed222d3ba75fd747d93c6f2d5a6a 100755 (executable)
@@ -197,6 +197,7 @@ void *factor_vm::inline_cache_miss(cell return_address_)
                << (tail_call_site ? "tail" : "non-tail")
                << " call site 0x" << std::hex << return_address.value << std::dec
                << std::endl;
+       print_callstack();
 #endif
 
        data_root<array> cache_entries(ctx->pop(),this);