Closed GoogleCodeExporter closed 8 years ago
your patch is generally good -- i will probably apply it -- except that i will
replace "sz" with "size".
i've gotta say though, i'm skeptical of claims that handling each allocation
failure
is really a viable strategy in a memory-cramped device. i'd suggest instead
replacing the allocator with one that has a fixed pool and uses setjmp/longjmp
instead.
Original comment by lahike...@gmail.com
on 19 Feb 2009 at 5:19
In userspace on a memory-cramped device, that would make sense. I did look for
a way
to use setjmp/longjmp, but in the kernel context where I want to use protobuf-c
nothing like that is readily available. In any case, I'm glad you're amenable to
carrying the patch.
Original comment by jason.l...@gmail.com
on 19 Feb 2009 at 6:15
Alright, thanks for your patch again. I hadn't noticed the test code before.
I REALLY appreciate that since adding a bunch of untested (and hard to cover
with
test code too..) code to protobuf-c wasn't exactly appealing.
(I did use a cheesy macro instead of the more classic approach in your patch,
but I
think the result should be identical, at least if you disregard the exact
details of
the error messages.)
subversion rev 173.
Original comment by lahike...@gmail.com
on 5 Mar 2009 at 4:02
Original comment by lahike...@gmail.com
on 5 Mar 2009 at 4:02
Original issue reported on code.google.com by
jason.l...@gmail.com
on 17 Feb 2009 at 10:05Attachments: