MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

peter ferrie
MAME Fan
Reged: 10/06/10
Posts: 46
Send PM
Re: mach3 untracked memory
08/11/13 08:18 PM


I'm probably just talking to myself here, but anyway...
mingw with -O3 assigns the new operator to malloc().
mingw with -O0 assigns the new operator to the overloaded version that calls malloc_file_line().
This happens when using the makefile to build, even when chd.c is the only thing being explicitly compiled.

Can someone explain to me why it happens?

This is the cause of the untracked memory bug.
When the new operator calls the malloc_file_line(), the problem goes away.







Entire thread
Subject Posted by Posted on
* mach3 untracked memory peter ferrie 08/09/13 08:24 AM
. * Re: mach3 untracked memory peter ferrie  08/11/13 08:18 PM
. * Re: mach3 untracked memory drewcifer  08/12/13 07:15 AM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 182 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1407