Re: detecting missing roots and other GC mistakes

2013-12-19 Thread Jonathan Worthington
Hi, On 12/16/2013 10:15, Nicholas Clark wrote: Edited it to carry on with just NQP, and got a hit at 2013. Starting program: /home/nicholas/Sandpit/burndown1/bin/moar --libpath=src/vm/moar/stage0 src/vm/moar/stage0/nqp.moarvm --bootstrap --module-path=gen/moar/stage1 --setting-path=gen/moar/s

Re: detecting missing roots and other GC mistakes

2013-12-18 Thread Nicholas Clark
On Tue, Dec 17, 2013 at 11:54:44PM +0100, Jonathan Worthington wrote: > On 12/15/2013 21:50, Nicholas Clark wrote: > > I don't know for sure what the right fix is. > Hopefully, 191c383 is the right fix. Confirmation welcome. :-) I can confirm that with it, the error goes away and I can build the

Re: detecting missing roots and other GC mistakes

2013-12-17 Thread Jonathan Worthington
On 12/15/2013 21:50, Nicholas Clark wrote: On Sun, Dec 15, 2013 at 05:56:40PM +, Nicholas Clark wrote: With this, all NQP tests pass I can build the Rakudo setting, with a nursery size of 2048K. I have now written a script that will attempt to repeatedly recompile that far, each time dropp

Re: detecting missing roots and other GC mistakes

2013-12-16 Thread Nicholas Clark
On Mon, Dec 16, 2013 at 07:58:06PM +0100, Tobias Leich wrote: > I don't think they can move... > > value_obj is only used from its assignment to before an allocation. Same > goes for base_obj. [reply below because I think that it makes more sense] > Am 15.12.2013 21:50, schrieb Nicholas Clark: >

Re: detecting missing roots and other GC mistakes

2013-12-16 Thread Tobias Leich
I don't think they can move... value_obj is only used from its assignment to before an allocation. Same goes for base_obj. Am 15.12.2013 21:50, schrieb Nicholas Clark: > On Sun, Dec 15, 2013 at 05:56:40PM +, Nicholas Clark wrote: > >> With this, all NQP tests pass I can build the Rakudo setti

Re: detecting missing roots and other GC mistakes

2013-12-16 Thread Nicholas Clark
On Sun, Dec 15, 2013 at 08:50:27PM +, Nicholas Clark wrote: > On Sun, Dec 15, 2013 at 05:56:40PM +, Nicholas Clark wrote: > > > With this, all NQP tests pass I can build the Rakudo setting, with a nursery > > size of 2048K. > > > > I have now written a script that will attempt to repeated

Re: detecting missing roots and other GC mistakes

2013-12-15 Thread Nicholas Clark
On Sun, Dec 15, 2013 at 05:56:40PM +, Nicholas Clark wrote: > With this, all NQP tests pass I can build the Rakudo setting, with a nursery > size of 2048K. > > I have now written a script that will attempt to repeatedly recompile that > far, each time dropping the nursery size by 1K, until so

Re: detecting missing roots and other GC mistakes

2013-12-15 Thread Nicholas Clark
On Sun, Dec 15, 2013 at 04:19:19PM +, Nicholas Clark wrote: > (Again) I don't know what the correct fix is. For now I'm working round it with this: commit d3b4bca8139a5875e6a91d14896c2167ce36e23d Author: Nicholas Clark Date: Sun Dec 15 18:31:29 2013 +0100 XXX Unclear if this is corre

Re: detecting missing roots and other GC mistakes

2013-12-15 Thread Nicholas Clark
On Sun, Dec 15, 2013 at 02:30:14PM +, Nicholas Clark wrote: > I hacked up (somewhat literally) the attached 3 patches, to try to help > automate GC debugging for MoarVM. The intent is to be able to change how Next mole to whack: $ gdb --args /home/nicholas/Sandpit/moar-g/bin/moar nqp.moarvm t

detecting missing roots and other GC mistakes

2013-12-15 Thread Nicholas Clark
I hacked up (somewhat literally) the attached 3 patches, to try to help automate GC debugging for MoarVM. The intent is to be able to change how the nursery memory management is done, to swap in approaches more suitable for debugging. Ideally I'd also like to be able to debug with 1) the nursery s