summaryrefslogtreecommitdiff
path: root/mg.c
Commit message (Collapse)AuthorAgeFilesLines
* Change 27779 failed to free() memory in two places in Perl_magic_set(),Nicholas Clark2006-10-271-2/+7
| | | | | and hence was leaking like the proverbial Jumblie maritime craft. p4raw-id: //depot/perl@29127
* only do \C hackery if \C is seenYves Orton2006-10-201-1/+6
| | | | | | Subject: Re: utf8 regexp performance problem Message-ID: <9b18b3110610200338k5df1d3afpf829fbc0f3663a75@mail.gmail.com> p4raw-id: //depot/perl@29063
* zero length $1 took too long to detect utf8-nessDave Mitchell2006-10-201-1/+1
| | | p4raw-id: //depot/perl@29059
* Deliver SIGILL, SIGBUS and SIGSEGV always in an "unsafe" manner.Rafael Garcia-Suarez2006-09-201-1/+11
| | | | | | Subject: Safe signals and SIGSEGV Message-ID: <20060908174341.0cc7988f@grubert.mandriva.com> p4raw-id: //depot/perl@28875
* Simplification in Perl_magic_clearsig, plus a fix similar andRafael Garcia-Suarez2006-08-081-5/+3
| | | | | | symmetrical to the one implemented in change #28669. p4raw-link: @28669 on //depot/perl: 9289f461126f104eef437e7c6d2f1f640f935646 p4raw-id: //depot/perl@28675
* g++ stage 1 reachedJarkko Hietaniemi2006-08-081-9/+9
| | | | | Message-ID: <44D7AA6B.4040802@iki.fi> p4raw-id: //depot/perl@28674
* We shouldn't try to decrement the refcount of PL_warnhookRafael Garcia-Suarez2006-08-071-1/+2
| | | | | if it has been set to PERL_WARNHOOK_FATAL. p4raw-id: //depot/perl@28669
* g++ large patchJarkko Hietaniemi2006-08-071-14/+14
| | | | | Message-ID: <44D2E203.5050201@iki.fi> p4raw-id: //depot/perl@28662
* Convert some low hanging fruit to my_strlcpy/my_strlcat.Steve Peters2006-07-101-2/+1
| | | p4raw-id: //depot/perl@28533
* mg.c cleanupsAndy Lester2006-07-031-15/+17
| | | | | Message-ID: <20060702173336.GA20641@petdance.com> p4raw-id: //depot/perl@28469
* remove some unnecessary uses of WITH_THRDave Mitchell2006-07-021-1/+1
| | | p4raw-id: //depot/perl@28465
* Re: [PATCH] Hash::Util::FieldHashAnno Siegel2006-06-231-1/+1
| | | | | Message-Id: <974A5B4B-7614-4F3F-BA7C-828960D82C55@mailbox.tu-berlin.de> p4raw-id: //depot/perl@28419
* mg.c: using #ifdef inside a macro call ENONPORTABLE (causes e.g. AIX to barf)Jarkko Hietaniemi2006-06-051-7/+6
| | | | | Message-Id: <200606040821.k548LUYu010965@vipunen.hut.fi> p4raw-id: //depot/perl@28351
* It's all relative -- better handling of tainted directoriesCraig A. Berry2006-06-021-2/+12
| | | | | in PATH on VMS (and scrubbing them in t/test.pl). p4raw-id: //depot/perl@28348
* [PATCH] gv.c constingAndy Lester2006-05-291-1/+1
| | | | | | | | | | | Date: Sun, 28 May 2006 12:24:25 -0500 Message-ID: <20060528172425.GA8291@petdance.com> Subject: [PATCH] mg.c consting From: andy@petdance.com (Andy Lester) Date: Sun, 28 May 2006 11:34:33 -0500 Message-ID: <20060528163433.GA5518@petdance.com> p4raw-id: //depot/perl@28323
* Abolish cop_io (the simple way) by storing the value in cop_hints_hash.Nicholas Clark2006-05-201-6/+10
| | | | | | Todo - store the in and out values under 2 keys, and avoid the need to create a temporary mortal SV while checking it. p4raw-id: //depot/perl@28258
* Rename cop_hints to cop_hints_hashNicholas Clark2006-05-201-7/+9
| | | p4raw-id: //depot/perl@28252
* Correct Perl_refcounted_he_chain_2hv() and its caller - it doesn'tNicholas Clark2006-05-191-1/+1
| | | | | store a reference to the value, so don't pass it in a new SV. p4raw-id: //depot/perl@28245
* more logic localizationsAndy Lester2006-05-031-5/+8
| | | | | Message-ID: <20060411191445.GA4938@petdance.com> p4raw-id: //depot/perl@28081
* More tweaking of SvREFCNT_inc callsAndy Lester2006-05-021-9/+10
| | | | | Message-ID: <20060430170621.GA4054@petdance.com> p4raw-id: //depot/perl@28047
* Re: [PATCH] cleanup 212 warnings emitted by gcc-4.2Marcus Holland-Moritz2006-04-261-1/+1
| | | | | Message-ID: <20060424232038.7550f9b6@r2d2> p4raw-id: //depot/perl@27962
* Cleanup some gcc warningsMarcus Holland-Moritz2006-04-241-0/+2
| | | | | | | Third and fourth patches from: Subject: Re: [PATCH] cleanup 212 warnings emitted by gcc-4.2 Message-ID: <20060423044704.6a383ee8@r2d2> p4raw-id: //depot/perl@27946
* Re: [PATCH] add pTHX_ parameter to new_warnings_bitfield()Steve Hay2006-04-131-1/+1
| | | | | | Message-ID: <443E1998.9090909@uk.radan.com> Date: Thu, 13 Apr 2006 10:27:52 +0100 p4raw-id: //depot/perl@27784
* Change cop_warnings from an SV holding the warnings bitmask to aNicholas Clark2006-04-121-6/+12
| | | | | | | directly (shared) malloc()ed buffer holding the warnings bitmask. This avoids bugs/crashes when the interpreter that created an optree is freed but the optree remains in use by other interpreters. p4raw-id: //depot/perl@27779
* Rename variables in some mg_* funcsAndy Lester2006-04-091-11/+15
| | | | | Message-ID: <20060409052012.GA15887@petdance.com> p4raw-id: //depot/perl@27749
* Re: Smoke [5.9.4] 27728 FAIL(F) MSWin32 WinXP/.Net SP2 (x86/2 cpu)Rafael Garcia-Suarez2006-04-061-1/+1
| | | | | Message-ID: <20060406143250.5a7de4b8@grubert.mandriva.com> p4raw-id: //depot/perl@27731
* Assigning undef to an entry in %ENV shouldn't produce warnings, evenRafael Garcia-Suarez2006-04-051-2/+2
| | | | | though it's silently converted to "" p4raw-id: //depot/perl@27725
* 'SvIOK(sv) ? SvIVX(sv) : sv_2iv(sv)' is 'SvIV(sv)' so write it as such.Nicholas Clark2006-04-021-21/+21
| | | p4raw-id: //depot/perl@27676
* Abstract all the accesses to cop_arybase (apart from ByteLoader)Nicholas Clark2006-04-021-6/+6
| | | p4raw-id: //depot/perl@27671
* Automatically set HINT_LOCALIZE_HH whenever %^H is modified.Nicholas Clark2006-04-011-0/+5
| | | p4raw-id: //depot/perl@27666
* Note future possible flexibility for Perl_magic_sethint().Nicholas Clark2006-03-311-0/+5
| | | p4raw-id: //depot/perl@27647
* Serialise changes to %^H onto the current COP. Return the compile timeNicholas Clark2006-03-311-0/+40
| | | | | | state of %^H as an eleventh value from caller. This allows users to write pragmas. p4raw-id: //depot/perl@27643
* Random accumulated patchesAndy Lester2006-03-311-3/+4
| | | | | Message-ID: <20060331054228.GA18940@petdance.com> p4raw-id: //depot/perl@27641
* sv_find() returning false, followed by sv_magic() to add the magic,Nicholas Clark2006-03-171-2/+6
| | | | | | followed immediately by sv_find() to find it, is somewhat wasteful. So use sv_magicext(). (All cases are also correct w.r.t. SvREADONLY()) p4raw-id: //depot/perl@27533
* Add a new per-interpeter variable PL_utf8cache, which will be used toNicholas Clark2006-03-161-1/+8
| | | | | | control the UTF-8 offset caching code. Make this visible as ${^UTF8CACHE} p4raw-id: //depot/perl@27525
* Speedups and shrinkages of SvREFCNT_incAndy Lester2006-02-271-8/+8
| | | | | Message-ID: <20060224205434.GA17867@petdance.com> p4raw-id: //depot/perl@27334
* unused context warningsAndy Lester2006-02-241-0/+6
| | | | | Message-ID: <20060221062711.GA16160@petdance.com> p4raw-id: //depot/perl@27300
* Remove get magic from typeglobs. This means that PVGVs holdingNicholas Clark2006-02-231-15/+6
| | | | | | | | | | | typeglobs never need to use SvPVX. This comes at price - typeglobs were using magic get for their stringificiation, and to pass SvOK(), so need to make typeglobs SvOK by default (by sucking SVp_SCREAM into SVf_OK - it's the only flag left), tweak SvSCREAM() to also check SVp_POK, and teach sv_2[inpu]v how to convert globs. However, it should free up SvPVX for the next part of the plan to pointer indirections, and therefore CPU cache pressure. p4raw-id: //depot/perl@27278
* Can merge the two arms of Perl_magic_getglob to save space.Nicholas Clark2006-02-211-7/+8
| | | p4raw-id: //depot/perl@27265
* Back out change change 10214 (drop SVp_IOK from >> PRIVSHIFT) as itNicholas Clark2006-02-141-1/+1
| | | | | | | never felt quite correct, and other parts of the SV conversion implementation have improved such that the symptoms 10214 covered over are gone even without it. p4raw-id: //depot/perl@27184
* assert() that we can't reach two unreachable code pathsNicholas Clark2006-02-111-2/+1
| | | | | (in Perl_magic_get and Perl_pp_shift). p4raw-id: //depot/perl@27154
* Trying my "remove the pTHXes" patch againAndy Lester2006-02-091-1/+1
| | | | | Message-ID: <20060209154018.GA14610@petdance.com> p4raw-id: //depot/perl@27136
* Re: [PATCH] s/Null(gv|hv|sv)/NULL/gSteven Schubiger2006-02-031-10/+10
| | | | | | Message-ID: <20060203152449.GI12591@accognoscere.homeunix.org> Date: Fri, 3 Feb 2006 16:24:49 +0100 p4raw-id: //depot/perl@27065
* s/Nullcv/NULL/gSteven Schubiger2006-02-031-1/+1
| | | | | | Message-ID: <20060202150241.GF12591@accognoscere.homeunix.org> Date: Thu, 2 Feb 2006 16:02:41 +0100 p4raw-id: //depot/perl@27060
* Re: [PATCH] s/Null(av|ch)/NULL/gSteven Schubiger2006-02-021-5/+5
| | | | | Message-ID: <20060202093849.GD12591@accognoscere.homeunix.org> p4raw-id: //depot/perl@27054
* Simplify nested '#ifdef' by replacing it with '#elif defined()'Gisle Aas2006-01-271-10/+4
| | | p4raw-id: //depot/perl@26954
* Safer implementation of RTRIM().Gisle Aas2006-01-271-3/+3
| | | | | Don't rely on SvCUR to be sane unless SvPOK. p4raw-id: //depot/perl@26953
* Change 26781/26830 (SvRTRIM should also write a new '\0' at the end) can ↵Philippe M. Chiasson2006-01-261-4/+6
| | | | | | | | | cause segfaults From: "Philippe M. Chiasson" <gozer@ActiveState.com> Message-ID: <43D941AF.1060503@ActiveState.com> Date: Thu, 26 Jan 2006 13:39:59 -0800 p4raw-id: //depot/perl@26952
* SvREADONLY_off inside the magic routines is also dangerous on sharedNicholas Clark2006-01-261-3/+2
| | | | | | hash key scalars, so decompose them to normal scalars if they ever get here. p4raw-id: //depot/perl@26946
* Un-const magic virtual tables; this consting breaks the nastyRafael Garcia-Suarez2006-01-231-1/+1
| | | | | things done by Swig, as noticed by Audrey. p4raw-id: //depot/perl@26924