diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-02-08 10:34:55 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-02-08 10:34:55 +0000 |
commit | 86058a2d0cb92466b4e8a316b21562a79c7559b9 (patch) | |
tree | 79fc2d8b5d8b0a111e3a74037359777afd1df976 /INSTALL | |
parent | a43a7b9b40bf89fadd8851b90ce97e573bb2509a (diff) | |
download | perl-86058a2d0cb92466b4e8a316b21562a79c7559b9.tar.gz |
make EMBEDMYMALLOC the default and provide PERL_POLLUTE_MALLOC to let
them ask for insanity (untested)
p4raw-id: //depot/perl@2832
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 22 |
1 files changed, 17 insertions, 5 deletions
@@ -747,6 +747,11 @@ To build without perl's malloc, you can use the Configure command or you can answer 'n' at the appropriate interactive Configure prompt. +Note that Perl's malloc family of functions are called Perl_malloc(), +Perl_realloc(), Perl_calloc() and Perl_mfree(). The names do not clash +with the system versions of these functions. See -DPERL_POLLUTE_MALLOC +below if you want to do that for some reason. + =head2 Malloc Performance Flags If you are using Perl's malloc, you may add one or more of the following @@ -767,6 +772,18 @@ in Perl 5.004. Undefined by default. Defining it in addition to NO_FANCY_MALLOC returns malloc to the version used in Perl version 5.000. +=item -DPERL_POLLUTE_MALLOC + +Undefined by default. This is used to force Perl's malloc family of functions +to have the same names as the system versions. This is normally only required +when you have a need to replace the system versions of these functions. +This may be sometimes required when you have libraries that like to free() +data that may have been allocated by Perl_malloc() and vice versa. + +Note that enabling this option may sometimes lead to duplicate symbols from +the linker for malloc et al. In such cases, the system probably does not +allow its malloc functions to be fully replaced with custom versions. + =back =head2 Building a debugging perl @@ -1011,11 +1028,6 @@ The latter is especially useful if you see something like this at Perl startup. -=item malloc duplicates - -If you get duplicates upon linking for malloc et al, add -DEMBEDMYMALLOC -to your ccflags variable in config.sh. - =item varargs If you get varargs problems with gcc, be sure that gcc is installed |