memory leak in the BEAM.

Klacke <>
Thu Aug 10 14:20:25 CEST 2000


On Thu, Aug 10, 2000 at 02:36:31PM +1000, Geoff Wong wrote:
> 
> Anyway - here's the patch (it works for me), seems to be
> a minor problem with the off heap list of memory chunks, feedback welcome :)
> 
> --- erts/emulator/beam/io.c.ORIG        Wed Aug  9 17:03:26 2000
> +++ erts/emulator/beam/io.c     Thu Aug 10 14:17:47 2000
> @@ -1446,7 +1446,7 @@
>         pb->thing_word = make_thing(PROC_BIN_SIZE-1, REFC_BINARY_SUBTAG);
>         pb->size = b->orig_size;
>         pb->next = p->off_heap.mso;
> -       p->off_heap.mso = pb->next;
> +       p->off_heap.mso = pb;
>         pb->val = DriverBinary2Binary(b);
>         pb->bytes = b->orig_bytes;
>         p->off_heap.overhead += b->orig_size / BINARY_OVERHEAD_FACTOR / sizeof(E
> term);


Great,


/klacke


-- 
Claes Wikstrom                          <>
Bluetail AB                             http://www.bluetail.com





More information about the erlang-questions mailing list