chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] fix incorrect type of jmp_buf


From: Jörg F . Wittenberger
Subject: Re: [Chicken-hackers] [PATCH] fix incorrect type of jmp_buf
Date: 19 Jun 2013 14:32:01 +0200

On Jun 18 2013, Peter Bex wrote:

On Tue, Jun 18, 2013 at 02:50:21PM +0200, Jörg F. Wittenberger wrote:
At least I tried not recently, certainly not since the sig*jmp stuff
came in.

OK, makes sense.

Also running my code under valgrind doesn't *really* work.  It did
catch some uninitalized variables etc (one "count" is still not fixed in
C_reclaim:


   if(gc_mode == GC_REALLOC) {
     C_rereclaim2(percentage(heap_size, C_heap_growth), 0);
     gc_mode = GC_MAJOR;
     count = (C_uword)tospace_top - (C_uword)tospace_start;
     goto i_like_spaghetti;
   }

The "count" above.

What, specifically, is wrong with it?

Rigth before "goto i_like_italian_food" there is no assignment to "count"
in the chicken source.  Valgrind therefore complains about the possible use
of an uninitialized variable.


Cheers,
Peter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]