Re: [PATCH v4 01/12] pkt-line: eliminate the need for static buffer in packet_write_gently()

2 messages, 2 authors, 2021-03-04 · open the first message on its own page

Re: [PATCH v4 01/12] pkt-line: eliminate the need for static buffer in packet_write_gently()

From: Junio C Hamano <hidden>
Date: 2021-03-04 00:27:03

Jeff Hostetler [off-list ref] writes:
Right, I think it would be fine to malloc it here, but I didn't
want to assume that everyone would think that.

I'll change it.
I agree with both of you that the code is unnice in its stack usage
and we want fix with malloc(), or something like that, but sorry, I
think I merged this round by mistake to 'next'.

As we won't be merging the topic to the upcoming release anyway, I
am willing to revert the merge to 'next' and requeue an updated one,
when it appears (I am also OK to see an incremental update, "oops,
no, we realize we don't want to have it on the stack" fix-up, if
this is the only glitch in the series that need to be fixed).

Thanks.

Re: [PATCH v4 01/12] pkt-line: eliminate the need for static buffer in packet_write_gently()

From: Jeff Hostetler <hidden>
Date: 2021-03-04 13:30:59


On 3/3/21 2:38 PM, Junio C Hamano wrote:
Jeff Hostetler [off-list ref] writes:
quoted
Right, I think it would be fine to malloc it here, but I didn't
want to assume that everyone would think that.

I'll change it.
I agree with both of you that the code is unnice in its stack usage
and we want fix with malloc(), or something like that, but sorry, I
think I merged this round by mistake to 'next'.

As we won't be merging the topic to the upcoming release anyway, I
am willing to revert the merge to 'next' and requeue an updated one,
when it appears (I am also OK to see an incremental update, "oops,
no, we realize we don't want to have it on the stack" fix-up, if
this is the only glitch in the series that need to be fixed).

Thanks.
I'm preparing a follow-on patch series to address Peff's comments
from Friday/Monday and yours from yesterday.  I thought I'd send
it as a set of new changes to sit on top of what we have in "next"
if that would make things easier for you.

After the upcoming release we can talk about whether it would be
better for me to smash together the 2 series or not.

Jeff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help