Avoid use deprecated Windows Memory API

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Avoid use deprecated Windows Memory API
Дата
Msg-id CAEudQAo3etqZWk5tht-2TCgo6JLGAFonn1pbaWY2ioaNXiBNNA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Avoid use deprecated Windows Memory API
Re: Avoid use deprecated Windows Memory API
Список pgsql-hackers
Hi.

According to:
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-localalloc
"Note The local functions have greater overhead and provide fewer features than other memory management functions. New applications should use the heap functions unless documentation states that a local function should be used. For more information, see Global and Local Functions."

LocalAlloc is deprecated.
So use HeapAlloc instead, once LocalAlloc is an overhead wrapper to HeapAlloc.

Attached a patch.

regards,
Ranier Vilela
Вложения

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