Hi Slava, Thanks for the throw_impl tipoff - that was the offending call and is fixed now.
I'm doing the vm fields now using the C-STRUCT: trick like you mentioned on irc, working a charm. http://github.com/phildawes/factor/tree/reentrantvm-dev (I wasn't sure where to stick the vm struct so have given it it's own vm vocab in basic for now) Incidently I was going to make rt-vm a 1 arg relocation type with the offset into the struct passed at compile time. Unfortunately I was getting crashes because something was passing a crazy offset during bootstrap (via jit-rel), so I gave up on that idea and am now just generating asm to add the offset at runtime. (my limited hacking time is precious so I tend to give up on stuff easily and go for the quick win). Out of interest does anything else invoke the do-primitive code other than that generated by make-primitive? To make the above work I needed it to pass a 0 offset arg as well as the primitive name so that it could be picked up by rt-vm at jit-compile time during bootstrap. Anyway, am going to move userenv into the vm next, which I think will involve adding a new compiler intrinsic for getenv so that'll be interesting. Cheers, Phil Slava Pestov wrote: > Phil, > > You asked in the IRC channel where this could be getting called from > but I didn't catch you in time... In addition to c_to_factor and the > (call) sub-primitive, have you checked throw_impl in cpu.x86.S? > > Slava > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
