Re: Some questions about GHC source code and wiki

2010-06-22 Thread Simon Marlow
On 18/06/2010 22:22, Marco Túlio Gontijo e Silva wrote: Hi Simon. Excerpts from Simon Marlow's message of Qua Jun 09 11:55:05 -0300 2010: (...) Now would be a good time to get acquainted with using gdb for debugging the GC. You'll need it eventually anyway! Thanks for the tip. I haven't sta

Re: Some questions about GHC source code and wiki

2010-06-18 Thread Marco Túlio Gontijo e Silva
Hi Simon. Excerpts from Simon Marlow's message of Qua Jun 09 11:55:05 -0300 2010: (...) > Now would be a good time to get acquainted with using gdb for debugging > the GC. You'll need it eventually anyway! Thanks for the tip. I haven't started with it before because I thought it was unnecessar

Re: Some questions about GHC source code and wiki

2010-06-09 Thread Simon Marlow
On 09/06/2010 14:45, Marco Túlio Gontijo e Silva wrote: Hi. I'm replying to myself, since I'm stuck for some days in the same thing, and I thought that asking may help me move on. By the way, have you received my last e-mail? I'm asking because I could not see it correctly in http://www.haskel

Re: Some questions about GHC source code and wiki

2010-06-09 Thread Marco Túlio Gontijo e Silva
Hi. I'm replying to myself, since I'm stuck for some days in the same thing, and I thought that asking may help me move on. By the way, have you received my last e-mail? I'm asking because I could not see it correctly in http://www.haskell.org/pipermail/cvs-ghc/2010-June/054293.html . Excerpts

Re: Some questions about GHC source code and wiki

2010-06-07 Thread Marco Túlio Gontijo e Silva
Hi Simon. Excerpts from Simon Marlow's message of Qui Jun 03 06:34:25 -0300 2010: > On 03/06/2010 00:12, Marco Túlio Gontijo e Silva wrote: (...) > >> From rts/sm/Sweep.c: (...) > >> *line_last = 0; (...) > use "NULL" rather than "0". In this case I'm doing I would have to do a type cast, be

Re: Some questions about GHC source code and wiki

2010-06-03 Thread Simon Marlow
On 03/06/2010 00:12, Marco Túlio Gontijo e Silva wrote: Hi. Another section of questions: From rts/sm/Evac.c: (...) Changing evacuate() to take an (StgClosure **) rather than returning the new pointer seems attractive, because we can avoid writing back the pointer when it hasn't

Re: Some questions about GHC source code and wiki

2010-06-02 Thread Marco Túlio Gontijo e Silva
Hi. Another section of questions: >From rts/sm/Evac.c: (...) >Changing evacuate() to take an (StgClosure **) rather than >returning the new pointer seems attractive, because we can avoid >writing back the pointer when it hasn't changed (eg. for a static >object, or an object in a

Re: Some questions about GHC source code and wiki

2010-06-02 Thread Simon Marlow
On 31/05/2010 20:26, Marco Túlio Gontijo e Silva wrote: http://people.debian.org/~marcot/mem2.png (source code: http://people.debian.org/~marcot/mem2.hs ) This image contains three scenarios of allocations using Immix. In the first, all objects are allocated once, so there's no fragmentation.

Re: Some questions about GHC source code and wiki

2010-06-02 Thread Simon Marlow
On 27/05/2010 12:48, Marco Túlio Gontijo e Silva wrote: Excerpts from Simon Marlow's message of Qui Mai 27 05:38:16 -0300 2010: I suggest we allocate medium objects in a separate space entirely, and maybe just copy them as normal, rather than using mark/sweep on them. You mean there will be

Re: Some questions about GHC source code and wiki

2010-06-01 Thread Marco Túlio Gontijo e Silva
Hi. Excerpts from Marco Túlio Gontijo e Silva's message of Qui Mai 27 08:48:34 -0300 2010: (...) > Excerpts from Simon Marlow's message of Qui Mai 27 05:38:16 -0300 2010: (...) > > We might consider "medium" objects to be any object that is larger than, > > say 75% of a line. The point is we wa

Re: Some questions about GHC source code and wiki

2010-05-27 Thread Marco Túlio Gontijo e Silva
Hi Simon. Excerpts from Simon Marlow's message of Qui Mai 27 05:38:16 -0300 2010: > On 27/05/2010 00:08, Marco Túlio Gontijo e Silva wrote: > > > I've made some patches to GHC to correct these issues. I don't know if > > you're > > willing to recieve these kind of small patches, but I'll send t

Re: Some questions about GHC source code and wiki

2010-05-27 Thread Simon Marlow
On 27/05/2010 00:08, Marco Túlio Gontijo e Silva wrote: I've made some patches to GHC to correct these issues. I don't know if you're willing to recieve these kind of small patches, but I'll send them anyway. I didn't see any patches - did you forget to attach them? I thought there would be

Re: Some questions about GHC source code and wiki

2010-05-27 Thread Max Bolingbroke
On 27 May 2010 01:26, Thomas Schilling wrote: > Every basic block that performs some allocation is preceded by a heap > check.  If this test fails, a special RTS routine is invoked.  I'm not > sure which one this is.  Simon can tell you. AFAIK it is stg_gc_fun. Sample code: """ clE: Hp = Hp

Re: Some questions about GHC source code and wiki

2010-05-26 Thread Thomas Schilling
Just a few bits, Simon will be able to help you with the rest. On 27 May 2010 00:08, Marco Túlio Gontijo e Silva wrote: > Hi Simon. > > Excerpts from Simon Marlow's message of Ter Mai 25 06:31:50 -0300 2010: >> On 24/05/2010 23:02, Marco Túlio Gontijo e Silva wrote: > (...) >> >> From includes/rt

Re: Some questions about GHC source code and wiki

2010-05-26 Thread Marco Túlio Gontijo e Silva
Hi Simon. Excerpts from Simon Marlow's message of Ter Mai 25 06:31:50 -0300 2010: > On 24/05/2010 23:02, Marco Túlio Gontijo e Silva wrote: (...) > >> From includes/rts/storage/GC.h: (...) > >> unsigned int n_words; // number of words > > > > Is this the total number of words in

Re: Some questions about GHC source code and wiki

2010-05-25 Thread Simon Marlow
On 24/05/2010 23:02, Marco Túlio Gontijo e Silva wrote: Hi. I was accepted as a student to the Google Summer of Code to work on Implemmenting the Immix Garbage Collector in GHC. I'm currently reading the Commentary and the source code in order to understand what needs to be changed. I have som

Some questions about GHC source code and wiki

2010-05-24 Thread Marco Túlio Gontijo e Silva
Hi. I was accepted as a student to the Google Summer of Code to work on Implemmenting the Immix Garbage Collector in GHC. I'm currently reading the Commentary and the source code in order to understand what needs to be changed. I have some questions which are not central to my work, but I though