[Development] QtCore missing check for memory allocation

İsmail Dönmez ismail at i10z.com
Tue Mar 10 10:03:02 CET 2015


Hi,

On Tue, Mar 10, 2015 at 10:55 AM, Al-Khanji Louai
<louai.al-khanji at theqtcompany.com> wrote:
> It's my understanding that on Windows you link the global operator new/delete replacement into every dll separately.

Well there is a very hackish but easier way, patching libcmt.lib to
remove allocation functionality:
https://github.com/adobe/chromium/blob/master/base/allocator/prep_libc.sh

Then you can plug in your malloc replacement. This is how Chrome uses
tcmalloc on Windows.

Regards,
ismail



More information about the Development mailing list