summaryrefslogtreecommitdiff
path: root/mg.c
Commit message (Collapse)AuthorAgeFilesLines
* Retract change #18765: makes HiRes.t hang after subtest #11.Jarkko Hietaniemi2003-02-251-20/+2
| | | | | p4raw-link: @18765 on //depot/perl: 2fb44b4522b8956ab337b2f83a5fe619b0773788 p4raw-id: //depot/perl@18769
* PERL_SIGNALS=unsafe enables the old unsafe/immediate signals.Jarkko Hietaniemi2003-02-241-8/+7
| | | p4raw-id: //depot/perl@18766
* Re: [perl #20920] Segmentation fault ("Safe Signal" queue problem?)Slaven Rezic2003-02-241-2/+20
| | | | | | | Message-ID: <878ywji8nw.fsf@vran.herceg.de> (with slight tweaks) p4raw-id: //depot/perl@18765
* The new(er) way of controlling Unicode I/O (and other) features;Jarkko Hietaniemi2003-02-151-9/+3
| | | | | -C (or PERL_UNICODE). See perlrun/-C for more details. p4raw-id: //depot/perl@18715
* [perl #18232] [PATCH] store PL_reg_match_utf8 in reganchRafael Garcia-Suarez2003-02-021-3/+3
| | | | | Message-Id: <20030122223556.57d597a3.rgarciasuarez@free.fr> p4raw-id: //depot/perl@18633
* OPf_SPECIAL on OP_DBSTATE now indicates a breakpoint.Dave Mitchell2003-01-261-2/+7
| | | | | | Subject: Re: [PATCH] Re: change #9754: 5 x slowdown for perl -d Message-ID: <20030124184419.F11179@fdgroup.com> p4raw-id: //depot/perl@18589
* integrate (by hand) #18353 and #18359 from maint-5.8:Hugo van der Sanden2003-01-211-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a cache for UTF-8 data: length and byte<->char offset mapping are stored in a new type of magic. Speeds up length(), substr(), index(), rindex(), pos(), and some parts of s///. The speedup varies a lot (on the usual suspects: what is the access pattern of the data, compiler, CPU), but should be at least one order of magnitude, and getting to the same magnitude as byte string speeds, and in some cases (length on unchanged data) even reaching the byte string speed. On the other hand, in some cases (index) the byte speed is still faster by a factor of five or so, but the bottleneck there does not seem to be any more the byte<->char offset mapping (instead, the fbm_instr() speed). There is one cache slot for the length, and only two for the byte<->char offset mapping (the first one for the start->offset, and the second for the offset->offset+length, when talking in substr() terms). Code this hairy is bound to have hairy trolls hiding under it. [...] A small tweak on top of #18353: don't display mg_len bytes of mg_ptr for PERL_MAGIC_utf8 because that's not what's there. p4raw-id: //depot/perl@18530
* Make the locale-induced UTF-8-ification of STD fhsJarkko Hietaniemi2003-01-161-6/+12
| | | | | | and the default file open layer explicit (either -C or PERL_UTF8_LOCALE), instead of implicit (and unasked-for). p4raw-id: //depot/perl@18490
* Change the value of ${^TAINT} : 0 without taint checks,Rafael Garcia-Suarez2003-01-061-1/+3
| | | | | 1 with -T, and -1 with -t or -TU. p4raw-id: //depot/perl@18453
* Re: [perl #19330] Uneffective increment of $\Rafael Garcia-Suarez2002-12-301-1/+1
| | | | | Message-Id: <20021227161424.17234e3c.rgarciasuarez@free.fr> p4raw-id: //depot/perl@18371
* $0 modifying part II (HP-UX only)Jarkko Hietaniemi2002-12-021-0/+12
| | | | | | Subject: [PATCH] $0 modifying Message-ID: <20021130181651.GA5876@kosh.hut.fi> p4raw-id: //depot/perl@18230
* $0 mofifying part IJarkko Hietaniemi2002-12-021-0/+2
| | | | | | Subject: [PATCH] $0 modifying Message-ID: <20021130181651.GA5876@kosh.hut.fi> p4raw-id: //depot/perl@18229
* The Inaba patch for tr/// vs. use encodingDan Kogai2002-10-241-14/+19
| | | | | Message-Id: <218B4434-E4D0-11D6-A668-0003939A104C@dan.co.jp> p4raw-id: //depot/perl@18058
* Happy chainsaw stories; The removal of the 5005 threadsH.Merijn Brand2002-10-191-25/+0
| | | | | Still imcomplete. Configure will follow p4raw-id: //depot/perl@18030
* enable -ansi -pedanticJarkko Hietaniemi2002-09-261-1/+8
| | | | | Message-ID: <20020917221925.GF85044@lyta.hut.fi> p4raw-id: //depot/perl@17925
* Copy On WriteNicholas Clark2002-08-171-0/+5
| | | | | | Message-id: <20020815001035.A69079@plum.flirble.org> specify "-Accflags='-DPERL_COPY_ON_WRITE'" to use p4raw-id: //depot/perl@17728
* Remove pseudo-hashes (complete)Michael G. Schwern2002-08-171-20/+6
| | | | | Message-id: <20020806200510.GC31473@ool-18b93024.dyn.optonline.net> p4raw-id: //depot/perl@17725
* [ID 20020704.001] again: #17678 caused test failures in pod2html,Hugo van der Sanden2002-08-041-13/+14
| | | | | in which $1 could leak from previous regexp p4raw-id: //depot/perl@17679
* Re: [ID 20020704.001] my $foo = $1 won't taint $foo (with use re 'taint')Hugo van der Sanden2002-08-041-7/+13
| | | | | Message-id: <200208041640.g74GeUU25061@crypt.compulink.co.uk> p4raw-id: //depot/perl@17678
* Retract #16820, #16819, #16810, #16669, #16531, #16530, #16501Jarkko Hietaniemi2002-05-281-11/+2
| | | | | to restore some level of sanity in the tied scalars can of worms. p4raw-id: //depot/perl@16845
* A shot in the dark.Jarkko Hietaniemi2002-05-271-3/+3
| | | p4raw-id: //depot/perl@16820
* Fix for the IO::Scalar bug (I think).Nick Ing-Simmons2002-05-271-2/+11
| | | | | | | | | | At tie time break the loop but in a different place: A. Increment REFCNT of the RV involved in the self-tie B. Decrement REFCNT of the thing RV points to (e.g. the GV) At mg_free time Break the connection between the RV and its referent so that we do not try and free it (again). p4raw-id: //depot/perlio@16808
* manual integrate of change#16332 from maint-5.6 branchGurusamy Sarathy2002-05-021-8/+18
| | | | | p4raw-link: @16332 on //depot/maint-5.6/perl: 9bf7742e23b67e3d7c671615795c570c51951513 p4raw-id: //depot/perl@16348
* Integrate #16334 from maint-5.6;Jarkko Hietaniemi2002-05-021-2/+1
| | | | | | | | don't pad $0 with spaces when setting it, use nulls instead (the spaces show up as a very long line in a ps listing) p4raw-id: //depot/perl@16339 p4raw-integrated: from //depot/maint-5.6/perl@16338 'merge in' mg.c (@16332..)
* More VC5-induced casting found by Nikola Knezevic.Jarkko Hietaniemi2002-04-271-1/+1
| | | p4raw-id: //depot/perl@16232
* fixes for all the warnings reported by Visual C (most of thisGurusamy Sarathy2002-04-211-10/+10
| | | | | | change is from change#12026) p4raw-link: @12026 on //depot/maint-5.6/perl: ff42b73b40f5a895aef4bed81c794f468e0609bc p4raw-id: //depot/perl@16048
* Windows 64-bit support:Gurusamy Sarathy2002-04-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * support for building it in the regular makefiles * large files support via the _*i64() functions (this should be portable to the 32-bit universe too, but quite untested and and binary-incompatible, therefore not enabled there) * three additional test failures in addition to the t/end.t one (see README.win32) * sprintf() on Windows gets %I{32,64,}[xoud] format that parallel the ones available from the CRT (needed because Perl uses the UVxf macros in both sprintf() *and* in sv_catpvf() et al.) * add a few 64-bit notes to README.win32 The following general problems were also fixed: * s/struct stat/Stat_t/g * Data::Dumper had some naughty 'long' typecasts * Errno_pm.PL didn't work safe when winsock.h was not in the same directory as errno.h * various tell/seek things were incorrectly prototyped * squelch ugly looking noise when running tests * Embed.t wasn't linking in all the libraries * perl57.dll is now perl58.dll (anticipating 5.8.0-RC1) * re-enable all the disabled warnings (additional fixes may be needed for the warnings uncovered by this) p4raw-id: //depot/perl@16033
* Humbly pay homage to the redundancy gods.Abhijit Menon-Sen2002-04-081-0/+1
| | | p4raw-id: //depot/perl@15818
* Remove, eliminate, and destroy multiple, redundant occurences of theAbhijit Menon-Sen2002-04-081-1/+0
| | | | | same line of code. (As suggested by Simon Cozens.) p4raw-id: //depot/perl@15797
* warnings for perlio + othersPaul Marquess2002-03-251-1/+1
| | | | | | From: "Paul Marquess" <paul_marquess@yahoo.co.uk> Message-ID: <AIEAJICLCBDNAAOLLOKLMEKNEAAA.paul_marquess@yahoo.co.uk> p4raw-id: //depot/perl@15485
* more warnings tidyupPaul Marquess2002-03-111-2/+2
| | | | | | From: "Paul Marquess" <paul_marquess@yahoo.co.uk> Message-ID: <AIEAJICLCBDNAAOLLOKLMEEGDPAA.paul_marquess@yahoo.co.uk> p4raw-id: //depot/perl@15155
* If we get to sighandler by mistake (no perl handler set) thenNick Ing-Simmons2002-01-261-11/+12
| | | | | | | warn() and exit() rather than die() - should never happen but if it does context needed to die is likely to be trashed as well. p4raw-id: //depot/perlio@14427
* Integrate mainlineNick Ing-Simmons2002-01-251-1/+1
| | | | | All but ../lib/Unicode/UCD.t pass. p4raw-id: //depot/perlio@14412
* Miss mg_len == 0 meaning don't SafefreeNick Ing-Simmons2002-01-221-6/+6
| | | p4raw-id: //depot/perlio@14373
* Nearly-working threads re-structuring. Do not integrate,Nick Ing-Simmons2002-01-191-1/+5
| | | | | submit-ing to get to Win32, and as "off site" backup. p4raw-id: //depot/perlio@14352
* Integrate mainline (for ndbm fixes etc.)Nick Ing-Simmons2002-01-171-0/+8
| | | p4raw-id: //depot/perlio@14312
* A mostly-stable version of "new" Win32 signal/kill support.Nick Ing-Simmons2002-01-111-7/+8
| | | p4raw-id: //depot/perlio@14192
* Missed the =head1 additions.Jarkko Hietaniemi2002-01-031-0/+4
| | | p4raw-id: //depot/perl@14041
* MULTIPLICITY fixups Charles Lane2001-12-061-0/+1
| | | | | Message-Id: <011205223453.8122e@DUPHY4.Physics.Drexel.Edu> p4raw-id: //depot/perl@13484
* $., $%, $=, and $- are IV's nowH.Merijn Brand2001-12-041-4/+4
| | | | | Message-Id: <20011204233412.304B.H.M.BRAND@hccnet.nl> p4raw-id: //depot/perl@13466
* Various small nits found by DJGPP build.Jarkko Hietaniemi2001-12-021-1/+1
| | | p4raw-id: //depot/perl@13427
* VMS pre7 default signal handlingCharles Lane2001-11-291-11/+57
| | | | | Message-Id: <011129141454.666c6@DUPHY4.Physics.Drexel.Edu> p4raw-id: //depot/perl@13371
* [PATCH] Re: $\ very brokenJarkko Hietaniemi2001-11-291-0/+2
| | | | | | | | | | | | From: Rafael Garcia-Suarez <rgarciasuarez@free.fr> Date: Wed, 28 Nov 2001 22:33:08 +0100 Message-ID: <20011128223308.E732@rafael> Subject: Re: [PATCH] Re: $\ very broken From: Nicholas Clark <nick@ccl4.org> Date: Wed, 28 Nov 2001 22:29:00 +0000 Message-ID: <20011128222859.K37621@plum.flirble.org> p4raw-id: //depot/perl@13345
* A bit more descriptive name.Jarkko Hietaniemi2001-10-311-7/+7
| | | p4raw-id: //depot/perl@12798
* make setting signal() persistentCharles Lane2001-10-311-4/+39
| | | | | Message-Id: <011031134318.231c@DUPHY4.Physics.Drexel.Edu> p4raw-id: //depot/perl@12796
* Add the encoding pragma to control the "upgrade"Jarkko Hietaniemi2001-10-281-54/+65
| | | | | | | from the native eight bit data to Unicode. TODO: \x.. and \0... literals. \N{}. chr()? ord()? p4raw-id: //depot/perl@12750
* USE_ENVIRON_ARRAY instead of !MACOS_TRADITIONAL,Jarkko Hietaniemi2001-10-261-4/+4
| | | | | as suggested by Sarathy. p4raw-id: //depot/perl@12687
* Integrate maintperl changes #12268 and #12669;Jarkko Hietaniemi2001-10-261-21/+9
| | | | | | | | | | | | | | | | | | | | | | | | final touches to the audit for statics and thread-unsafe code * make DB_File, ODBM_File thread-safe * remove unnecessary/dangerous statics and protect others from not getting accidentally enabled under threaded perls windows support functions get_childdir() et al aren't exported correctly under vanilla build Testing under win32 appreciated since changes there had to be manually merged and I cannot test how badly did I do. p4raw-link: @12268 on //depot/perlio: bb407f0b8769c638c05e60ebfd157a1e676a6c22 p4raw-id: //depot/perl@12678 p4raw-integrated: from //depot/maint-5.6/perl@12677 'copy in' win32/vmem.h (@5902..) 'merge in' ext/DB_File/DB_File.xs (@8693..) win32/win32iop.h (@8917..) ext/ODBM_File/ODBM_File.xs (@8995..) iperlsys.h (@9154..) scope.c (@9584..) makedef.pl (@11425..) gv.c (@12026..) op.c (@12145..) util.c (@12220..) toke.c (@12550..) ext/B/B.xs ext/File/Glob/Glob.xs ext/Opcode/Opcode.xs ext/re/re.xs (@12653..) mg.c win32/win32.c (@12668..)
* Oh, bother. In Tru64 cc -std1 was looking rather niceJarkko Hietaniemi2001-10-171-8/+2
| | | | | | | | | | in speed (upto 20% speedup in certain operations) but meanwhile regexps and arithmetics got slower (5-10%) (according to perlbench average speedup is negligible, and within measuring flutter, 1%). Therefore retracting all the changes aimed at getting -std1 to compile cleanly: #12475, #12476, #12479, #12480, #12481, #12482, #12483, #12484. p4raw-id: //depot/perl@12485
* (retracted by #12485)Jarkko Hietaniemi2001-10-171-0/+3
| | | | | Add explanatory comment. p4raw-id: //depot/perl@12482