summaryrefslogtreecommitdiff
path: root/malloc.c
Commit message (Collapse)AuthorAgeFilesLines
* remove _() non-ansismGurusamy Sarathy1999-06-021-4/+4
| | | p4raw-id: //depot/perl@3518
* fix missing exported symbolGurusamy Sarathy1999-05-261-9/+2
| | | p4raw-id: //depot/perl@3484
* Integrate from mainperl.Jarkko Hietaniemi1999-03-231-1/+1
|\ | | | | p4raw-id: //depot/cfgperl@3128
| * update copyright yearsGurusamy Sarathy1999-03-221-1/+1
| | | | | | p4raw-id: //depot/perl@3124
* | First pass of integrating the Rhapsody port,Wilfredo Sánchez1999-03-151-1/+1
|/ | | | | | | | Subject: Keeping the world in sync. Reply-To: wsanchez@apple.com To: perlbug@perl.com Message-Id: <199811140111.RAA41784@scv4.apple.com> p4raw-id: //depot/cfgperl@3108
* fix typo in Perl_sbrk()Hans Mulder1999-02-201-1/+1
| | | | | | Message-Id: <9902192221.AA07213@icgned.icgroup.nl> Subject: Not OK: perl 5.00555 on OPENSTEP-Mach 4_2 (UNINSTALLED) p4raw-id: //depot/perl@2993
* make EMBEDMYMALLOC the default and provide PERL_POLLUTE_MALLOC to letGurusamy Sarathy1999-02-081-16/+8
| | | | | them ask for insanity (untested) p4raw-id: //depot/perl@2832
* Atari MiNT port by Guido Flohr <gufl0000@stud.uni-sb.de>Jarkko Hietaniemi1999-01-131-4/+4
| | | | | | (the diffs were based on 5.004_02). Tested by Guido and Frank Naumann <fnaumann@prinz-atm.CS.Uni-Magdeburg.De>. p4raw-id: //depot/cfgperl@2594
* Re: stuff related to malloc.cIlya Zakharevich1998-12-171-1/+1
| | | | | | | To: domo@computer.org Cc: jhi@iki.fi, perl5-porters@perl.org Message-Id: <199812162140.QAA04925@monk.mps.ohio-state.edu> p4raw-id: //depot/cfgperl@2486
* Re: stuff related to malloc.cIlya Zakharevich1998-12-131-15/+43
| | | | | | | To: jhi@iki.fi Cc: Carl_Adler@idx.com, perl5-porters@perl.org Message-Id: <199812130039.TAA21704@monk.mps.ohio-state.edu> p4raw-id: //depot/cfgperl@2475
* another threads reliability fix: serialize writes to thr->threadsvGurusamy Sarathy1998-11-291-1/+2
| | | | | | | | avoid most uses of PL_na (which is much more inefficient than a simple local); update docs to suit; PL_na now being thr->Tna may be a minor compatibility issue for extensions--will require dTHR outside of XSUBs (those get automatic dTHR) p4raw-id: //depot/perl@2387
* fix MALLOC_LOCK #defineGurusamy Sarathy1998-11-281-4/+4
| | | p4raw-id: //depot/perl@2341
* malloc bugfix and documentation from Ilya ZakharevichGurusamy Sarathy1998-11-271-1/+68
| | | | | | | | | | | Date: Tue, 24 Nov 1998 17:24:55 -0500 (EST) Message-Id: <199811242224.RAA22618@monk.mps.ohio-state.edu> Subject: [PATCH 5.005_*] Re: Internal coredump -- Date: Thu, 26 Nov 1998 03:06:10 -0500 (EST) Message-Id: <199811260806.DAA28913@monk.mps.ohio-state.edu> Subject: [PATCH 5.005_*] malloc.c documentation p4raw-id: //depot/perl@2325
* Cosmetic malloc patchIlya Zakharevich1998-11-271-16/+73
| | | | | Message-Id: <199811100003.TAA05815@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@2320
* Re: [PATCH] Re: Not OK: perl 5.00553 on OPENSTEP-Mach 4_1Hans Mulder1998-11-091-4/+4
| | | | | | | | | To: Ilya Zakharevich <ilya@math.ohio-state.edu> Cc: gsar@engin.umich.edu (Gurusamy Sarathy), jhi@iki.fi, perl5-porters@perl.org (UNINSTALLED) Message-Id: <9811082119.AA11802@icgned.icgroup.nl> p4raw-id: //depot/cfgperl@2225
* Finalize the Mach CThreads support.Hans Mulder1998-11-071-8/+16
| | | | | | | | To: Gurusamy Sarathy <gsar@engin.umich.edu> Cc: jhi@iki.fi, perl5-porters@perl.org Subject: [PATCH] Re: Not OK: perl 5.00553 on OPENSTEP-Mach 4_1 (UNINSTALLED) Message-Id: <9811072105.AA07794@icgned.icgroup.nl> p4raw-id: //depot/cfgperl@2211
* Renamed malloc.c ASSERT() macro to P_ASSERT() becauseJarkko Hietaniemi1998-11-061-8/+8
| | | | | | | | | | | | | | | | | | | ASSERT() causes problems in {NeXTStep,OpenStep}. From: Hans Mulder <hansm@icgroup.nl> To: Jarkko Hietaniemi <jhi@cc.hut.fi> Subject: Re: Not OK: perl 5.00553 on OPENSTEP-Mach 4_1 (UNINSTALLED) Date: Fri, 6 Nov 98 01:27:41 +0100 Message-Id: <9811060025.AA27389@icgned.icgroup.nl> and From: Ilya Zakharevich <ilya@math.ohio-state.edu> Subject: Re: ASSERT() in malloc.c To: jhi@iki.fi Date: Fri, 6 Nov 1998 02:59:29 -0500 (EST) Message-Id: <199811060759.CAA18915@monk.mps.ohio-state.edu> p4raw-id: //depot/cfgperl@2209
* phase 1 of somewhat major rearrangement of PERL_OBJECT stuffGurusamy Sarathy1998-10-301-1/+1
| | | | | | | | | | (objpp.h is gone, embed.pl now does some of that); objXSUB.h should soon be automated also; the global variables that escaped the PL_foo conversion are now reined in; renamed MAGIC in regcomp.h to REG_MAGIC to avoid collision with the type of same name; duplicated lists of pp_things in various places is now gone; result has only been tested on win32 p4raw-id: //depot/perl@2133
* minor cleanupGurusamy Sarathy1998-10-281-4/+3
| | | p4raw-id: //depot/perl@2112
* enable PERL_SBRK_VIA_MALLOC on OPENSTEP-MachHans Mulder1998-09-231-5/+1
| | | | | | Message-Id: <9808111907.AA21903@icgned.icgroup.nl> Subject: Not OK: perl 5.00551 on OPENSTEP-Mach 4_1 (UNINSTALLED) p4raw-id: //depot/perl@1807
* Better debugging output from malloc.cIlya Zakharevich1998-08-021-7/+8
| | | | | Message-Id: <199808020835.EAA09367@monk.mps.ohio-state.edu> p4raw-id: //depot/maint-5.005/perl@1713
* malloc.c tweaksIlya Zakharevich1998-08-021-15/+40
| | | | | | Message-Id: <199808012246.SAA00699@monk.mps.ohio-state.edu> Subject: [PATCH 5.005_*] Better malloc.c p4raw-id: //depot/maint-5.005/perl@1707
* complete s/foo/PL_foo/ changes (all escaped cases identified withGurusamy Sarathy1998-07-201-1/+1
| | | | | | brute force search script). Result builds and passes all tests on Solaris. win32 and PERL_OBJECT are still untested. p4raw-id: //depot/perl@1578
* Drat! - threaded perl-malloc has mutex that needs PL_Nick Ing-Simmons1998-07-191-12/+12
| | | p4raw-id: //depot/ansiperl@1570
* PL_ for perl's mallocNick Ing-Simmons1998-07-191-8/+8
| | | p4raw-id: //depot/ansiperl@1569
* reenable misaligned memory checks, cast to UV & check alignmentDominic Dunlop1998-07-091-2/+2
| | | | | | Message-Id: <v03110703b1c8ffdb68ed@[195.95.102.91]> Subject: Re: [PATCH 5.00469] corrupt malloc ptr on NeXT p4raw-id: //depot/perl@1389
* corrupt malloc ptr on NeXTHans Mulder1998-07-061-1/+1
| | | | | Message-Id: <9807060021.AA29027@icgned.icgroup.nl> p4raw-id: //depot/perl@1333
* Make Power MachTen use vfork and perl's mallocDominic Dunlop1998-07-041-7/+31
| | | | | Message-Id: <v03110701b1c1603eae52@[195.95.102.68]> p4raw-id: //depot/perl@1298
* applied patch, regen headersIlya Zakharevich1998-06-231-2/+12
| | | | | | Message-Id: <199806220819.EAA03295@monk.mps.ohio-state.edu> Subject: [PATCH 5.004_67] Malloc size feedback p4raw-id: //depot/perl@1201
* fix alignment issues in malloc.c on 64-bit platforms (via private mail)Ilya Zakharevich1998-06-221-1/+14
| | | | | | Message-Id: <199806170844.EAA24584@monk.mps.ohio-state.edu> Subject: Re: _67 not okay p4raw-id: //depot/perl@1184
* adapted contents of message into comments in malloc.c and INSTALLIlya Zakharevich1998-06-211-0/+100
| | | | | | Message-Id: <199806162240.SAA23597@monk.mps.ohio-state.edu> Subject: [5.004_67] malloc.c -Defines p4raw-id: //depot/perl@1180
* applied patch, tweaked wordingIlya Zakharevich1998-06-211-1/+1
| | | | | | Message-Id: <199806200838.EAA13992@monk.mps.ohio-state.edu> Subject: [PATCH 5.004_67] Documentation patch for malloc p4raw-id: //depot/perl@1177
* Cosmetic malloc patchIlya Zakharevich1998-06-211-172/+190
| | | | | Message-Id: <199806200829.EAA13974@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@1176
* Better version of malloc improverIlya Zakharevich1998-06-211-39/+77
| | | | | Message-Id: <199806172151.RAA28441@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@1167
* various win32 fixesGurusamy Sarathy1998-06-141-2/+2
| | | | | | | | | | | - fixes that silence VC noises about dup exports, non-default libs, and unsupported *.def file directives - s/inplace/inplace_label/ malloc.c - update Config{usemymalloc} based on d_mymalloc - export Perl_*Vars - fix makefiles to not build miniperl.exe twice, and to make it properly when defaults are changed p4raw-id: //depot/perl@1129
* add newer malloc.c from Ilya Zakharevich <ilya@math.ohio-state.edu>Gurusamy Sarathy1998-06-101-244/+848
| | | | | (from $CPAN/authors/id/ILYAZ/patches/diff_malloc_65) p4raw-id: //depot/perl@1082
* STRESS_REALLOCStephen McCamant1998-03-161-0/+3
| | | p4raw-id: //depot/perl@820
* Perl_sbrk declared inconsistentlyHans Mulder1998-02-201-1/+1
| | | p4raw-id: //depot/perl@543
* Re: wrong prototype for sbrk [PATCH]Andy Dougherty1998-02-121-3/+3
| | | p4raw-id: //depot/perl@509
* [win32] s/PerlENV/PerlEnv/ just to be consistentGurusamy Sarathy1998-01-191-1/+1
| | | p4raw-id: //depot/win32/perl@434
* [win32] foo() -> PerlGroup_foo() patch from ActiveStateGurusamy Sarathy1998-01-191-2/+2
| | | p4raw-id: //depot/win32/perl@433
* Fix MYMALLOC (wrong #define in malloc.c):Ilya Zakharevich1997-11-271-2/+0
| | | | | Subject: 5.004_55: MYMALLOC completely busted p4raw-id: //depot/perl@320
* Move malloc_mutex initialisation/destruction:Ilya Zakharevich1997-11-251-0/+1
| | | | | Subject: patch to 5.004_54 for pthreads with Perl's malloc p4raw-id: //depot/perl@299
* Remove bincompat3 support:Jarkko Hietaniemi1997-11-251-0/+2
| | | | | Subject: Re: ANNOUNCE: perl5.004_54 is available p4raw-id: //depot/perl@288
* Convert miniperl sources to ANSI C. Several passes ofNick Ing-Simmons1997-10-311-22/+16
| | | | | | | | | GNU C's 'protoize' plus a few hand edits. Will compile miniperl with gcc -x c++ (i.e. treat .c a C++ files) Does not link seems gcc's C++ does not define a symbol for const char foo[] = "...."; i.e. with empty []. p4raw-id: //depot/ansiperl@194
* Merge maint-5.004 branch (5.004_04) with mainline.Malcolm Beattie1997-10-161-3/+3
|\ | | | | p4raw-id: //depot/perl@137
| * [inseparable changes from patch to perl 5.004_04]perl-5.004_04Perl 5 Porters1997-09-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [editor's note: this one imported like a charm!] TESTS - Subject: Improve pragma/locale test 102 - and don't fail, just warn From: Jarkko Hietaniemi <jhi@anna.in-berlin.de> Files: t/pragma/locale.t Subject: Invalid test output in t/op/taint.t in trial 1 From: Dan Sugalski <sugalsd@lbcc.cc.or.us> Files: t/op/taint.t t/op/taint.t prints out invalid ok messages for tests it skips. Rather than printing "ok 136" it prints "136 ok". p5p-msgid: 3.0.3.32.19970919160918.00857a50@stargate.lbcc.cc.or.us UTILITIES - Subject: Perldoc tiny patch to avoid $0 From: Ilya Zakharevich <ilya@math.ohio-state.edu> Files: utils/perldoc.PL Msg-ID: 199709122141.RAA16846@monk.mps.ohio-state.edu (applied based on p5p patch as commit 0b166b6635cf199f072db516b2a523ee659394d5) Subject: h2ph broken in 5.004_02 From: David Mazieres <dm@reeducation-labor.lcs.mit.edu> Files: utils/h2ph.PL Msg-ID: 199708201700.KAA02621@www.chapin.edu (applied based on p5p patch as commit 4a8e146e38ec2045f1f817a7cb578e1b1f80f39f) Subject: add key_t caddr_t to h2ph From: Tony Sanders <sanders@bsdi.com> Files: eg/sysvipc/ipcsem utils/h2ph.PL Msg-ID: 199708272301.RAA12803@austin.bsdi.com (applied based on p5p patch as commit 0806a92ffc3a74ca70aa81051cdf2a306cd0a8af) Subject: perldoc search ., lib and blib/* if -f 'Makefile.PL' From: Tim Bunce <Tim.Bunce@ig.co.uk> Files: utils/perldoc.PL Subject: perldoc finds wrong pod2man (from perldoc source) # We must look both in @INC for library modules and in PATH # for executables, like h2xs or perldoc itself. Unfortunately, searching PATH for installed perl executables like pod2man is INCORRECT. perldoc should start by searching the directory it was executed from, which might not be in the PATH at all. Credited: Joseph "Moof-in'" Hall <joseph@cscaper.com> p5p-msgid: 199708251732.KAA19299@gadget.cscaper.com Subject: 5.004m4t1: perlbug: NIS domainname gets into wrong places From: Andreas J. Koenig <koenig@anna.mind.de> Files: utils/perlbug.PL Msg-ID: sfcg1qy38as.fsf@anna.in-berlin.de (applied based on p5p patch as commit 41f926b844140b7f7eaa9302113e45df3a9f9ff4) Subject: add better local patch info to perlbug From: Tim Bunce <Tim.Bunce@ig.co.uk> Files: utils/perlbug.PL Subject: perldoc - suggest modules if requested module not found From: Anthony David <adavid@netinfo.com.au> Files: utils/perldoc.PL private-msgid: 3439CD83.6969@netinfo.com.au Subject: perldoc mail::foo tries to read binary /usr/ucb/mail From: Tim Bunce <Tim.Bunce@ig.co.uk> Files: utils/perldoc.PL Subject: perldoc weirdness perldoc mail::imap yields: {joseph}:79% perldoc mail::foo can't open /usr/ucb/mail: Permission denied at ./pod2man line 362. Credited: Joseph "Moof-in'" Hall <joseph@cscaper.com> p5p-msgid: 199710082014.NAA00808@gadget.cscaper.com Subject: perldoc -f setpwent (for example) returns no descriptive text From: Tim Bunce <Tim.Bunce@ig.co.uk> Files: utils/perldoc.PL Subject: perldoc diffs: don't search auto - much faster From: "Joseph N. Hall" <joseph@5sigma.com> Files: utils/perldoc.PL Msg-ID: MailDrop1.2d7dPPC.971012211957@screechy.cscaper.com (applied based on p5p patch as commit 62b753c6ae4ab9bf22fbb6ec7ceac820bcef8fe4)
* | Merge maint-5.004 branch (5.004_03) with mainline.Malcolm Beattie1997-10-081-0/+10
|\ \ | |/ | | | | | | MANIFEST is out of sync. p4raw-id: //depot/perl@114
| * Enable PERL_DEBUG_MSTATS without -DDEBUGGING_MSTATSIlya Zakharevich1997-08-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subject: [PATCH]: reduced malloc patch Since this problems arise again and again on the list, here is the reduced malloc patch. It corrects the following problems: a) several off-by-one in av_make(); b) Growing TMP on conversion number=>string; c) Uncompatibility of -DDEBUGGING_MSTATS and system malloc; (The first two problems are fixed by malloc_jumbo_2 as well, but the 2 chunks for "c" - in perl.c - were forgotten in that patch). Enjoy, p5p-msgid: 199707150829.EAA01291@monk.mps.ohio-state.edu
| * infinite recursion in malloc() with some compile flagsHans Mulder1997-08-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apologies if you see this twice, but I'm afraid my first attempt fell into a black hole. Neither Achim's archive nor the NNTP gateway seem to have recieved it. If one tries to compile perl with all of -DPACK_MALLOC -DHIDEMYMALLOC -DUSE_PERL_SBRK -DPERL_SBRK_VIA_MALLOC then it's almost certain that miniperl will overflow the C stack on its first attempt to call malloc(). This happens because with -DPACK_MALLOC Perl_malloc() expects sbrk() to return 2K-aligned blocks and Perl_sbrk() provides the same sort of alignments as the system malloc(), i.e. 8 bytes or so. When Perl_malloc() notices the block returned by sbrk() isn't properly aligned, it tries to croak("panic: Off-page sbrk"). Croak() calls mess(); mess() calls mess_alloc(); mess_alloc() calls Perl_malloc(); Perl_malloc() again calls croak() and so on until the C stack overflows. I see two problems here; 1. With -DPACK_MALLOC, Perl_sbrk() should return 2K-aligned blocks. 2. croak() should not recurse infinitely. The patch below deals with #1. I'll think some more about #2. p5p-msgid: 199706240050.CAA10550@xs2.xs4all.nl