summaryrefslogtreecommitdiff
path: root/gv.c
Commit message (Collapse)AuthorAgeFilesLines
* g++ stage 1 reachedJarkko Hietaniemi2006-08-081-13/+9
| | | | | Message-ID: <44D7AA6B.4040802@iki.fi> p4raw-id: //depot/perl@28674
* g++ large patchJarkko Hietaniemi2006-08-071-10/+15
| | | | | Message-ID: <44D2E203.5050201@iki.fi> p4raw-id: //depot/perl@28662
* Re: [perl #39733] $AUTOLOAD is never taintedRick Delaney2006-08-021-1/+0
| | | | | | | Message-ID: <20060709190150.GA1922@localhost.localdomain> Plus a note in perldelta p4raw-id: //depot/perl@28649
* Proper use of enumsAndy Lester2006-06-121-0/+1
| | | | | Message-ID: <20060612034434.GA21588@petdance.com> p4raw-id: //depot/perl@28381
* A little more work needed to get ext/re/t/re.t test 14 (no segv) passingNicholas Clark2006-06-111-1/+7
| | | | | with PERL_DESTRUCT_LEVEL=2. p4raw-id: //depot/perl@28378
* exhausting <> in BEGIN{} gets ARGVOUT used only once warningYitzchak Scott-Thoennes2006-06-071-0/+3
| | | | | Message-ID: <20060607052446.GA3240@efn.org> p4raw-id: //depot/perl@28364
* [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
* In Perl_Gv_AMupdate(), there's no need to call sv_unmagic() if we knowNicholas Clark2006-05-091-5/+8
| | | | | the magic isn't there. p4raw-id: //depot/perl@28144
* Gv_AMupdate() always creates magic, so mg can never be NULL.Nicholas Clark2006-05-091-0/+1
| | | p4raw-id: //depot/perl@28143
* GvFILE() cannot be a pointer to the memory owned by the COP, becauseNicholas Clark2006-05-021-1/+8
| | | | | | | COPs created by use can be freed along this memory, but the GP remains. Given that several GVs may refer to the same file, use a shared string rather than an individual allocation per GP. p4raw-id: //depot/perl@28060
* De-duplicate the code that creates new GPs into Perl_newGP().Nicholas Clark2006-05-021-14/+22
| | | p4raw-id: //depot/perl@28058
* more -ansi -pedantic cleanlinessJarkko Hietaniemi2006-04-291-1/+1
| | | | | Message-ID: <44532024.9070303@gmail.com> p4raw-id: //depot/perl@28010
* reduce gcc -ansi -pedantic noise plus a suggestionJarkko Hietaniemi2006-04-281-2/+2
| | | | | Message-ID: <44527402.8000506@gmail.com> p4raw-id: //depot/perl@28008
* 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
* use NOOP macroAndy Lester2006-04-251-2/+2
| | | | | Message-ID: <20060424184451.GA1479@petdance.com> p4raw-id: //depot/perl@27958
* Ensure GvNAME doesn't return NULLMarcus Holland-Moritz2006-04-241-1/+2
| | | | | | | First patch from : Subject: Re: [PATCH] cleanup 212 warnings emitted by gcc-4.2 Message-ID: <20060423044704.6a383ee8@r2d2> p4raw-id: //depot/perl@27944
* Initializing variables is good. This is another Coverity catch.Steve Peters2006-04-051-1/+1
| | | p4raw-id: //depot/perl@27723
* Removed unnecessary pointers checksAndy Lester2006-04-021-5/+5
| | | | | Message-ID: <20060401070132.GA6616@petdance.com> p4raw-id: //depot/perl@27690
* Serialise changes to %^H onto the current COP. Return the compile timeNicholas Clark2006-03-311-1/+7
| | | | | | 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-5/+5
| | | | | Message-ID: <20060331054228.GA18940@petdance.com> p4raw-id: //depot/perl@27641
* Add a new per-interpeter variable PL_utf8cache, which will be used toNicholas Clark2006-03-161-0/+2
| | | | | | control the UTF-8 offset caching code. Make this visible as ${^UTF8CACHE} p4raw-id: //depot/perl@27525
* Correct another gv_fetchpv() - it takes a bitmask of flags, not simplyNicholas Clark2006-03-091-1/+1
| | | | | TRUE/FALSE. p4raw-id: //depot/perl@27456
* Perl_gv_name_set should not leak the old HEK. Allow the flag GV_ADDNicholas Clark2006-03-051-1/+5
| | | | | to simplify GV initialisation. p4raw-id: //depot/perl@27382
* Move the GvNAME HEK into the IV union - every GV is now 1 pointerNicholas Clark2006-03-051-1/+1
| | | | | smaller. p4raw-id: //depot/perl@27380
* Use a HEK to store the GV's name, rather than a malloc()ed string.Nicholas Clark2006-03-051-2/+6
| | | | | | | Saves 1 word in each GV (no more strlen), and will also save the memory used by the string itself, as the HEK will exist already due to the key used by the symbol table for this GV. p4raw-id: //depot/perl@27379
* Provide Perl_gv_name_set to replace LVALUE use of GvNAME and GvNAMESET.Nicholas Clark2006-03-051-2/+12
| | | p4raw-id: //depot/perl@27377
* Change 27330 failed to decontaminate SvCUR/GvFLAGS when upgrading anNicholas Clark2006-02-271-2/+8
| | | | | SvPV acting as a prototype placeholder to a full typeglob. p4raw-id: //depot/perl@27336
* Speedups and shrinkages of SvREFCNT_incAndy Lester2006-02-271-6/+8
| | | | | Message-ID: <20060224205434.GA17867@petdance.com> p4raw-id: //depot/perl@27334
* Store GvGP in the SV head union. For all the common lookups [eg GvCV()]Nicholas Clark2006-02-251-2/+2
| | | | | | | | this avoids 1 pointer dereference and the associated risk of a CPU cache miss. Although this patch looks deceptively small, I fear its CBV(*) might be rather high. (* Crack By Volume) p4raw-id: //depot/perl@27323
* Given that Perl_gp_free() is refcount-dec-and-maybe-free for the globNicholas Clark2006-02-241-0/+1
| | | | | | | pointer, it's inconsistent that it only sets this GV's GvGP to 0 if this GV happened to have the last reference. Why should this GV care if it had the last reference? So always set it to 0. It's free. Gone. p4raw-id: //depot/perl@27320
* Remove set magic from typeglobs. Remove typeglob magic entirely.Nicholas Clark2006-02-231-1/+0
| | | | | | Typeglobs now never access the SvPVX, SvIVX or SvNVX when holding a valid GvGP(). p4raw-id: //depot/perl@27289
* Remove get magic from typeglobs. This means that PVGVs holdingNicholas Clark2006-02-231-0/+1
| | | | | | | | | | | 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
* Add a new CvISXSUB() macro, for abstracting the test as to whether aNicholas Clark2006-02-201-1/+1
| | | | | PVCV is perl or XS. p4raw-id: //depot/perl@27241
* Sun Studio lint patchesAndy Lester2006-02-141-1/+2
| | | | | Message-ID: <20060214054617.GA8824@petdance.com> p4raw-id: //depot/perl@27177
* Re: [PATCH] s/Null(gv|hv|sv)/NULL/gSteven Schubiger2006-02-031-16/+16
| | | | | | 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-7/+7
| | | | | | 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-4/+4
| | | | | Message-ID: <20060202093849.GD12591@accognoscere.homeunix.org> p4raw-id: //depot/perl@27054
* gv_fetchpvn_flags ranks highly in the profile, and the ::/' scanningNicholas Clark2006-02-021-1/+9
| | | | | | | loop is iterated over millions of times. Add a flag GV_NOTQUAL purely as an optimisation, when the caller is passing in a string that is known not to contain any package separators. p4raw-id: //depot/perl@27053
* Yet more instances of gv_fetchpv... that should be GV_ADD rather thanNicholas Clark2006-02-021-2/+2
| | | | | | TRUE. Convert two gv_fetchpvn_flags to gv_fetchpvs. p4raw-id: //depot/perl@27050
* And another assumption.Nicholas Clark2006-02-021-1/+3
| | | p4raw-id: //depot/perl@27049
* doubleplusoops. Apart from the documented NUL termination assumption.Nicholas Clark2006-02-011-14/+23
| | | | | Now removed. p4raw-id: //depot/perl@27046
* Oops. 1 NUL termination assumption remains in Perl_gv_fetchpvn_flagsNicholas Clark2006-02-011-1/+1
| | | p4raw-id: //depot/perl@27044
* Make Perl_gv_fetchpvn_flags actually heed the passed in length.Nicholas Clark2006-01-311-13/+14
| | | | | This means that \0 bytes in symbolic references now work. p4raw-id: //depot/perl@27028
* PERL_DONT_CREATE_GVSV wasn't as effective as it should have been.Nicholas Clark2006-01-281-0/+1
| | | p4raw-id: //depot/perl@26980
* Change all NEWSV() to newSV() in the core and non-dual-lived modules.Steve Hay2006-01-181-4/+4
| | | | | | | | Keep NEWSV() itself for backwards-compatibility outside of the core, but don't advertise it any more. (cf. change #25101). p4raw-link: @25101 on //depot/perl: a02a5408b2f199007c4dcb74559cc79066307ada p4raw-id: //depot/perl@26901
* A few more places that can use hv_fetchs().Gisle Aas2006-01-111-4/+4
| | | | | Ref change 26676. p4raw-id: //depot/perl@26795
* It's the Barbie bus patchAndy Lester2006-01-101-8/+8
| | | | | Message-ID: <20060110054243.GA26165@petdance.com> p4raw-id: //depot/perl@26764
* sprinkle dVARJarkko Hietaniemi2006-01-061-0/+12
| | | | | Message-ID: <43BE7C4D.1010302@gmail.com> p4raw-id: //depot/perl@26675
* More copyright updatesRafael Garcia-Suarez2006-01-041-1/+1
| | | p4raw-id: //depot/perl@26652
* Make the new STR_WITH_LEN() affected compile under -Dusethreads.Gisle Aas2006-01-041-4/+4
| | | | | Can't use STR_WITH_LEN() as argument to a macro :-( p4raw-id: //depot/perl@26649