Re: valgrind error in tsvectorin

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: valgrind error in tsvectorin
Дата
Msg-id 4136ffa0905141541r3a15455cxd40f606e88607ba7@mail.gmail.com
обсуждение исходный текст
Ответ на Re: valgrind error in tsvectorin  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: valgrind error in tsvectorin  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Yeah, it looks like the memcpy is sometimes unnecessary because res and
> ptr point to the same place.  It might be worth cleaning up just to
> avoid the valgrind warning, but I doubt it would save any noticeable
> number of cycles.

I assume valgrind is warning about it because memcpy's behaviour is
undefined if the blocks overlap. I'm having trouble imagining an
implementation that would fail if they're precisely the same pointer
though.

--
greg


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: valgrind error in tsvectorin
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Translation updates