2004-11-10 00:03:01 +01:00
|
|
|
# Microsoft Developer Studio Project File - Name="@name@" - Package Owner=<4>
|
|
|
|
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
2011-06-30 17:37:13 +02:00
|
|
|
|
2011-06-30 17:46:53 +02:00
|
|
|
# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
|
2011-06-30 17:37:13 +02:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
2004-11-10 00:03:01 +01:00
|
|
|
# ** DO NOT EDIT **
|
|
|
|
|
|
|
|
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
|
|
|
|
|
|
|
CFG=@name@ - Win32 Debug
|
|
|
|
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
|
|
|
!MESSAGE use the Export Makefile command and run
|
|
|
|
!MESSAGE
|
|
|
|
!MESSAGE NMAKE /f "@name@.mak".
|
|
|
|
!MESSAGE
|
|
|
|
!MESSAGE You can specify a configuration when running NMAKE
|
|
|
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
|
|
|
!MESSAGE
|
|
|
|
!MESSAGE NMAKE /f "@name@.mak" CFG="@name@ - Win32 Debug"
|
|
|
|
!MESSAGE
|
|
|
|
!MESSAGE Possible choices for configuration are:
|
|
|
|
!MESSAGE
|
|
|
|
!MESSAGE "@name@ - Win32 Release" (based on "Win32 (x86) Static Library")
|
|
|
|
!MESSAGE "@name@ - Win32 Debug" (based on "Win32 (x86) Static Library")
|
|
|
|
!MESSAGE
|
|
|
|
|
|
|
|
# Begin Project
|
|
|
|
# PROP AllowPerConfigDependencies 0
|
|
|
|
# PROP Scc_ProjName ""
|
|
|
|
# PROP Scc_LocalPath ""
|
|
|
|
CPP=xicl6.exe
|
|
|
|
RSC=rc.exe
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "@name@ - Win32 Release"
|
|
|
|
|
|
|
|
# PROP BASE Use_MFC 0
|
|
|
|
# PROP BASE Use_Debug_Libraries 0
|
|
|
|
# PROP BASE Output_Dir "Release"
|
|
|
|
# PROP BASE Intermediate_Dir "Release"
|
|
|
|
# PROP BASE Target_Dir ""
|
|
|
|
# PROP Use_MFC 0
|
|
|
|
# PROP Use_Debug_Libraries 0
|
|
|
|
# PROP Output_Dir "release"
|
|
|
|
# PROP Intermediate_Dir "release"
|
|
|
|
# PROP Target_Dir ""
|
|
|
|
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
|
|
|
|
# ADD CPP /nologo /G6 /MT /W3 /O2 /D "WIN32" /D "DBUG_OFF" /D "_WINDOWS" /D "NDEBUG" /FD /c
|
|
|
|
# ADD BASE CPP @includes@
|
|
|
|
# ADD CPP @includes@
|
|
|
|
# SUBTRACT CPP /YX
|
|
|
|
# ADD BASE RSC /l 0x409
|
|
|
|
# ADD RSC /l 0x409
|
|
|
|
BSC32=bscmake.exe
|
|
|
|
# ADD BASE BSC32 /nologo
|
|
|
|
# ADD BSC32 /nologo
|
|
|
|
LIB32=xilink6.exe -lib
|
|
|
|
# ADD BASE LIB32 /nologo
|
2004-11-15 10:43:17 +01:00
|
|
|
# ADD LIB32 /nologo /out:".\lib_release\@name@.lib"
|
2004-11-10 00:03:01 +01:00
|
|
|
@release_libs@
|
|
|
|
|
|
|
|
!ELSEIF "$(CFG)" == "@name@ - Win32 Debug"
|
|
|
|
|
|
|
|
# PROP BASE Use_MFC 0
|
|
|
|
# PROP BASE Use_Debug_Libraries 1
|
|
|
|
# PROP BASE Output_Dir "Debug"
|
|
|
|
# PROP BASE Intermediate_Dir "Debug"
|
|
|
|
# PROP BASE Target_Dir ""
|
|
|
|
# PROP Use_MFC 0
|
|
|
|
# PROP Use_Debug_Libraries 1
|
|
|
|
# PROP Output_Dir "debug"
|
|
|
|
# PROP Intermediate_Dir "debug"
|
|
|
|
# PROP Target_Dir ""
|
|
|
|
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
Bug#34043: Server loops excessively in _checkchunk() when safemalloc is enabled
Essentially, the problem is that safemalloc is excruciatingly
slow as it checks all allocated blocks for overrun at each
memory management primitive, yielding a almost exponential
slowdown for the memory management functions (malloc, realloc,
free). The overrun check basically consists of verifying some
bytes of a block for certain magic keys, which catches some
simple forms of overrun. Another minor problem is violation
of aliasing rules and that its own internal list of blocks
is prone to corruption.
Another issue with safemalloc is rather the maintenance cost
as the tool has a significant impact on the server code.
Given the magnitude of memory debuggers available nowadays,
especially those that are provided with the platform malloc
implementation, maintenance of a in-house and largely obsolete
memory debugger becomes a burden that is not worth the effort
due to its slowness and lack of support for detecting more
common forms of heap corruption.
Since there are third-party tools that can provide the same
functionality at a lower or comparable performance cost, the
solution is to simply remove safemalloc. Third-party tools
can provide the same functionality at a lower or comparable
performance cost.
The removal of safemalloc also allows a simplification of the
malloc wrappers, removing quite a bit of kludge: redefinition
of my_malloc, my_free and the removal of the unused second
argument of my_free. Since free() always check whether the
supplied pointer is null, redudant checks are also removed.
Also, this patch adds unit testing for my_malloc and moves
my_realloc implementation into the same file as the other
memory allocation primitives.
client/mysqldump.c:
Pass my_free directly as its signature is compatible with the
callback type -- which wasn't the case for free_table_ent.
2010-07-08 23:20:08 +02:00
|
|
|
# ADD CPP /nologo /G6 /MTd /W3 /Z7 /Od /Gf /D "WIN32" /D "_DEBUG" /D "SAFE_MUTEX" /D "_WINDOWS" /FD /c
|
2004-11-10 00:03:01 +01:00
|
|
|
# ADD BASE CPP @includes@
|
|
|
|
# ADD CPP @includes@
|
|
|
|
# SUBTRACT CPP /YX
|
|
|
|
# ADD BASE RSC /l 0x409
|
|
|
|
# ADD RSC /l 0x409
|
|
|
|
BSC32=bscmake.exe
|
|
|
|
# ADD BASE BSC32 /nologo
|
|
|
|
# ADD BSC32 /nologo
|
|
|
|
LIB32=xilink6.exe -lib
|
|
|
|
# ADD BASE LIB32 /nologo
|
2004-11-15 10:43:17 +01:00
|
|
|
# ADD LIB32 /nologo /out:".\lib_debug\@name@.lib"
|
2004-11-10 00:03:01 +01:00
|
|
|
@debug_libs@
|
|
|
|
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# Begin Target
|
|
|
|
|
|
|
|
# Name "@name@ - Win32 Release"
|
|
|
|
# Name "@name@ - Win32 Debug"
|
|
|
|
|
|
|
|
# Begin Group "Source Files"
|
|
|
|
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
|
|
|
|
|
|
|
@sources@
|
|
|
|
|
|
|
|
# End Group
|
|
|
|
|
|
|
|
# End Target
|
|
|
|
# End Project
|