summaryrefslogtreecommitdiff
path: root/hv.c
Commit message (Collapse)AuthorAgeFilesLines
* Support compiling for RISC OSAlex Waugh2006-04-181-1/+1
| | | | | Message-ID: <2498b2184e.ajw498@caramel.cp15.org> p4raw-id: //depot/perl@27884
* Add assertions to cover cases where the Coverity scanner thinks weNicholas Clark2006-04-171-0/+1
| | | | | | could are deferencing a NULL pointer, but we think it missed something it should have been capable of figuring out. p4raw-id: //depot/perl@27867
* clean up hv_assert()Andy Lester2006-04-161-57/+58
| | | | | Message-ID: <20060416041827.GA3031@petdance.com> p4raw-id: //depot/perl@27835
* D'oh! Don't try to do #ifdefs inside "functions" that are actuallyNicholas Clark2006-04-121-2/+5
| | | | | macros. p4raw-id: //depot/perl@27781
* Add tests for all the other types that %^H serialisation is supposedNicholas Clark2006-04-121-1/+1
| | | | | | to support. In the process, found and corrected a bug. Tests are good, m'kay. p4raw-id: //depot/perl@27780
* Store cop_hints as a shared structure without using any SVs (onNicholas Clark2006-04-121-35/+115
| | | | | ithreads). p4raw-id: //depot/perl@27776
* Remove Perl_refcounted_he_copy and Perl_refcounted_he_dup.Nicholas Clark2006-04-121-68/+0
| | | p4raw-id: //depot/perl@27775
* First stab at using the pad to store the serialised hints data.Nicholas Clark2006-04-111-6/+46
| | | | | | This approach is almost certainly not only wrong, but also doomed. But it's needed to build a correct solution. p4raw-id: //depot/perl@27768
* Need to migrate the refcounted_he structure to be properly shared.Nicholas Clark2006-04-111-27/+20
| | | | | | Add a mutex for manipulated their reference counts. Unwrap the structure, so that for ithreads it can store SVs in pads. p4raw-id: //depot/perl@27764
* Perl_unsharepvn() was no longer being used in core, and changes toNicholas Clark2006-04-101-9/+5
| | | | | S_unshare_hek_or_pvn() had broken it. Now fixed and tested. p4raw-id: //depot/perl@27761
* Automatically set HINT_LOCALIZE_HH whenever %^H is modified.Nicholas Clark2006-04-011-0/+33
| | | p4raw-id: //depot/perl@27666
* The call to Perl_hv_assert(aTHX_ hv) should be wrapped in a DEBUG_A().Nicholas Clark2006-04-011-3/+1
| | | p4raw-id: //depot/perl@27665
* Propagate cop_hints inside string evals. For the unthreaded case thisNicholas Clark2006-04-011-0/+33
| | | | | | | is easy. For the threaded case it's not, because the current OP may be shared with another thread, so solve this by copying the hints chain. p4raw-id: //depot/perl@27659
* Serialise changes to %^H onto the current COP. Return the compile timeNicholas Clark2006-03-311-1/+184
| | | | | | 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-2/+2
| | | | | Message-ID: <20060331054228.GA18940@petdance.com> p4raw-id: //depot/perl@27641
* Fix bug 36267 - assigning to a tied hash shouldn't change theNicholas Clark2006-03-301-1/+1
| | | | | | | | underlying hash. (It used to, if the underlying hash had had storage allocated). This has the side effect of changing the return value from hv_store and hv_store_ent for some tied hash scenarios. But *to* something consistent (ly crazy) p4raw-id: //depot/perl@27636
* Only compile Perl_hv_assert with DEBUGGING.Nicholas Clark2006-03-281-0/+4
| | | p4raw-id: //depot/perl@27622
* Correct the macros in the comments in hv.c. Given the improvements inNicholas Clark2006-03-161-4/+4
| | | | | | | compiler optimisation, and the almost irrelevance of instructions executed over cache misses, maybe we should just remove the comments by putting their code back in place of the o{ptimis,bfuscat}ed version. p4raw-id: //depot/perl@27523
* Change hv_name_set to take U32 length and flags parameters.Nicholas Clark2006-03-051-1/+4
| | | p4raw-id: //depot/perl@27381
* Speedups and shrinkages of SvREFCNT_incAndy Lester2006-02-271-1/+1
| | | | | Message-ID: <20060224205434.GA17867@petdance.com> p4raw-id: //depot/perl@27334
* unused context warningsAndy Lester2006-02-241-0/+1
| | | | | Message-ID: <20060221062711.GA16160@petdance.com> p4raw-id: //depot/perl@27300
* More NullXXX macro removal from Andy LesterRafael Garcia-Suarez2006-02-201-10/+10
| | | p4raw-id: //depot/perl@27238
* arena-rework : consolidated patchJim Cromie2006-02-181-1/+1
| | | | | | | | | Message-ID: <43F0F649.9040205@gmail.com> Tweaked somewhat to split the arena boolean from the arena_size, and with the PTE still doubling-up with one of the SV types in the array. p4raw-id: //depot/perl@27215
* Sun Studio lint patchesAndy Lester2006-02-141-1/+1
| | | | | Message-ID: <20060214054617.GA8824@petdance.com> p4raw-id: //depot/perl@27177
* A better fix than 27148Steve Hay2006-02-101-1/+1
| | | | | | | | | | | | | Subject: Win32 assert (was Re: Smoke [5.9.4] 27145 FAIL(M) MSWin32 WinXP/.Net SP2 (x86/2 cpu)) From: Nicholas Clark <nick@ccl4.org> Date: Fri, 10 Feb 2006 14:58:47 +0000 Message-ID: <20060210145847.GA85020@plum.flirble.org> Subject: RE: Win32 assert (was Re: Smoke [5.9.4] 27145 FAIL(M) MSWin32 WinXP/.Net SP2 (x86/2 cpu)) From: "Jan Dubois" <jand@ActiveState.com> Date: Fri, 10 Feb 2006 09:03:41 -0800 Message-ID: <024401c62e63$f1e53c10$6062a8c0@candy> p4raw-id: //depot/perl@27152
* Fix the effects of 27136 on Win32 with DEBUGGING and PERL_IMPLICIT_SYSSteve Hay2006-02-101-1/+1
| | | p4raw-id: //depot/perl@27148
* Trying my "remove the pTHXes" patch againAndy Lester2006-02-091-3/+3
| | | | | Message-ID: <20060209154018.GA14610@petdance.com> p4raw-id: //depot/perl@27136
* [patch] rework arenas - repair arenasetsJim Cromie2006-02-051-2/+0
| | | | | | Message-ID: <43E5F012.1080203@gmail.com> Date: Sun, 05 Feb 2006 05:31:14 -0700 p4raw-id: //depot/perl@27097
* [patch] arena rework - arena setsJim Cromie2006-02-041-1/+2
| | | | | | Message-ID: <43DF4F66.4080808@gmail.com> Date: Tue, 31 Jan 2006 04:52:06 -0700 p4raw-id: //depot/perl@27079
* Re: [PATCH] s/Null(gv|hv|sv)/NULL/gSteven Schubiger2006-02-031-12/+12
| | | | | | Message-ID: <20060203152449.GI12591@accognoscere.homeunix.org> Date: Fri, 3 Feb 2006 16:24:49 +0100 p4raw-id: //depot/perl@27065
* Re: [PATCH] s/Null(av|ch)/NULL/gSteven Schubiger2006-02-021-1/+1
| | | | | Message-ID: <20060202093849.GD12591@accognoscere.homeunix.org> p4raw-id: //depot/perl@27054
* [patch] arena rework - unify arenarootsJim Cromie2006-02-011-2/+2
| | | | | | Message-ID: <43DF3D0A.3040102@gmail.com> Date: Tue, 31 Jan 2006 03:33:46 -0700 p4raw-id: //depot/perl@27030
* Avoid a warning from the Irix C compiler.Nicholas Clark2006-01-301-1/+1
| | | p4raw-id: //depot/perl@27005
* Use a union for storing the shared hash key reference count, ratherNicholas Clark2006-01-301-6/+6
| | | | | than messy pointer hacks. p4raw-id: //depot/perl@27000
* 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
* It's the Barbie bus patchAndy Lester2006-01-101-33/+32
| | | | | Message-ID: <20060110054243.GA26165@petdance.com> p4raw-id: //depot/perl@26764
* hv_fetchs() supportAndy Lester2006-01-061-1/+1
| | | | | Message-ID: <20060106155719.GB9035@petdance.com> p4raw-id: //depot/perl@26676
* sprinkle dVARJarkko Hietaniemi2006-01-061-0/+11
| | | | | Message-ID: <43BE7C4D.1010302@gmail.com> p4raw-id: //depot/perl@26675
* Update copyrights for files modified in 2006Rafael Garcia-Suarez2006-01-021-1/+1
| | | p4raw-id: //depot/perl@26562
* Making 0 pointers to NULLsAndy Lester2006-01-011-1/+1
| | | | | Message-ID: <20051231050558.GA29093@petdance.com> p4raw-id: //depot/perl@26558
* Turn a for loop that's almost a while into an honest-to-goodness while.Nicholas Clark2005-12-311-2/+2
| | | p4raw-id: //depot/perl@26552
* Calling Perl_hv_clear_placeholders while the hash iterator was activeNicholas Clark2005-12-311-1/+1
| | | | | | would turn lazy delete on, causing the hash to become corrupted at the next iterator change. p4raw-id: //depot/perl@26551
* Remove unneeded test in Perl_hv_clear_placeholders.Nicholas Clark2005-12-311-15/+9
| | | | | Rejig S_hfreeentries to a double loop, which is clearer and smaller. p4raw-id: //depot/perl@26550
* Re-attempt to clear the hash in S_hfreeentries if anything adds to it.Nicholas Clark2005-12-311-83/+113
| | | | | Panic if we seem to be looping forever. p4raw-id: //depot/perl@26547
* Stop 'sub a { // }; %::=()' panicing because the backreference arrayNicholas Clark2005-12-311-1/+21
| | | | | became lost. p4raw-id: //depot/perl@26546
* Document why it's a bad plan to move the backreferences array fromNicholas Clark2005-12-301-4/+9
| | | | | | the magic structure to the hv_aux structure during backreference deletion. Add an optimisation for an empty backreference array. p4raw-id: //depot/perl@26542
* In the shared string table, if we add new entries to the head of theNicholas Clark2005-12-301-10/+10
| | | | | linked list chain, then we don't need as much bookkeeping in the loop. p4raw-id: //depot/perl@26538
* RMAGIC on symbol tables is bad, m'kay.Nicholas Clark2005-12-301-1/+40
| | | | | | | | Allow hashes (and therefore all symbol tables) to store the backreference array in the hv_aux structure, and thereby undo the performance damage of 24966, which resulted in 60% of all hash lookups trying to mg_find tiehash magic. p4raw-id: //depot/perl@26530
* pre-likely cleanupAndy Lester2005-12-271-0/+4
| | | | | | | Message-ID: <20051227203939.GC1781@petdance.com> Includes a small fix to the changes in tryAMAGICbinW_var() in pp.h. p4raw-id: //depot/perl@26505
* Ho! Ho! Ho! Santa brings consting!Andy Lester2005-12-221-3/+3
| | | | | Message-ID: <20051222165717.GA2874@petdance.com> p4raw-id: //depot/perl@26450