summaryrefslogtreecommitdiff
path: root/hv.c
Commit message (Collapse)AuthorAgeFilesLines
* Hash lookup of constant strings optimization:Nick Ing-Simmons2000-09-031-44/+46
| | | | | | | | | | Introduce SvREADONLY && SvFAKE to flag an SV which has SvPVX pointing to string table (as per sharepvn). Add newSV_pvn_share to create such a thing. Make hv.c compare addresses of strings and skip string compare if equal. Make method_named and helem ops use these shared-string SVs when arg is constant. Make keys op return shared-string SVs (less clearly a win). p4raw-id: //depot/perl@7016
* fix large memory leak that has been around for ever, masked byGurusamy Sarathy2000-07-041-2/+7
| | | | | -DPURIFY (most of the arenas were never freed!) p4raw-id: //depot/perl@6298
* fixes for most warnings identified by gcc -WallGurusamy Sarathy2000-03-051-2/+2
| | | p4raw-id: //depot/perl@5540
* fix small interpreter leaks identified by PurifyGurusamy Sarathy2000-02-141-9/+21
| | | p4raw-id: //depot/perl@5084
* documentation patches (from Michael Schwern and YitzchakGurusamy Sarathy2000-02-081-4/+4
| | | | | Scott-Thoennes) p4raw-id: //depot/perl@5040
* set SvUTF8 on vectors only if there are chars > 127; update copyrightGurusamy Sarathy2000-02-061-1/+1
| | | | | years (from Gisle Aas) p4raw-id: //depot/perl@5009
* autogenerate API listing from comments in the source (from BenjaminGurusamy Sarathy2000-01-281-0/+200
| | | | | | | Stuhl <sho_pi@hotmail.com>); fix the markup format to be more flexible for better readability; add missing docs in sv.c; regenerate perltoc p4raw-id: //depot/perl@4915
* leak in change#4694 spotted by LarryGurusamy Sarathy1999-12-171-2/+2
| | | | | p4raw-link: @4694 on //depot/perl: 94f7643d7f26ed53393f1ab3452245da43de285e p4raw-id: //depot/perl@4696
* delete() should return the value as is, not a copy thereofGurusamy Sarathy1999-12-171-4/+8
| | | p4raw-id: //depot/perl@4694
* more complete pseudo-fork() support for WindowsGurusamy Sarathy1999-12-011-1/+9
| | | p4raw-id: //depot/perl@4602
* preliminary support for perl_clone() (still needs work inGurusamy Sarathy1999-11-081-21/+38
| | | | | | | | the following areas: SVOPs must indirect via pad; context stack, scope stack, and runlevels must be cloned; must hook up the virtualized pseudo-process support provided by "host"; ...) p4raw-id: //depot/perl@4538
* lexical warnings update (warning.t fails one testPaul Marquess1999-07-071-2/+5
| | | | | | | due to leaked scalar, investigation pending) Message-ID: <5104D4DBC598D211B5FE0000F8FE7EB29C6C8E@mbtlipnt02.btlabs.bt.co.uk> Subject: [PATCH 5.005_57] Lexical Warnings - mandatory warning are now default warnings p4raw-id: //depot/perl@3640
* more complete support for implicit thread/interpreter pointer,Gurusamy Sarathy1999-06-091-10/+10
| | | | | | | | | | | | | | | | | | | | | enabled via -DPERL_IMPLICIT_CONTEXT (all changes are noops without that enabled): - USE_THREADS now enables PERL_IMPLICIT_CONTEXT, so dTHR is a noop; tests pass on Solaris; should be faster now! - MULTIPLICITY has been tested with and without PERL_IMPLICIT_CONTEXT on Solaris - improved function database now merged with embed.pl - everything except the varargs functions have foo(a,b,c) macros to provide compatibility - varargs functions default to compatibility variants that get the context pointer using dTHX - there should be almost no source compatibility issues as a result of all this - dl_foo.xs changes other than dl_dlopen.xs untested - still needs documentation, fixups for win32 etc Next step: migrate most non-mutex variables from perlvars.h to intrpvar.h p4raw-id: //depot/perl@3524
* initial stub implementation of implicit thread/thisGurusamy Sarathy1999-06-071-42/+35
| | | | | | | | | | | | pointer argument; builds/tests on Solaris, win32 hasn't been fixed up yet; proto.h, global.sym and static function decls are now generated from a common database in proto.pl; some inconsistently named perl_foo() things are now Perl_foo(), compatibility #defines provided; perl_foo() (lowercase 'p') reserved for functions that take an explicit context argument; next step: generate #define foo(a,b) Perl_foo(aTHX_ a,b) p4raw-id: //depot/perl@3522
* remove _() non-ansismGurusamy Sarathy1999-06-021-5/+5
| | | p4raw-id: //depot/perl@3518
* hv.c calling negative malloc()Ilya Zakharevich1999-05-251-1/+3
| | | | | Message-ID: <19990524174356.A1944@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@3470
* various fixes for clean build and test on win32; configpm broken,Gurusamy Sarathy1999-05-111-18/+32
| | | | | | | | | | needed to open myconfig.SH rather than myconfig; sundry adjustments to bytecode stuff; tweaks to DYNAMIC_ENV_FETCH code to make it work under win32; getenv_sv() changed to getenv_len() since SVs aren't visible in the lower echelons; remove bogus exports from config.sym; PERL_OBJECT-ness for C++ exception support; null out IoDIRP in filter_del() or sv_free() will attempt to close it p4raw-id: //depot/perl@3387
* applied non-conflicting parts of suggested patchCharles Bailey1999-05-051-12/+34
| | | | | | Message-id: <01J9AZY8I2PW001O2S@mail.newman.upenn.edu> Subject: [Patch 5.005_56] Revised VMS patch p4raw-id: //depot/perl@3306
* correct places that said newSVpv() when they meant newSVpvn()Gurusamy Sarathy1999-04-041-11/+11
| | | p4raw-id: //depot/perl@3217
* update copyright yearsGurusamy Sarathy1999-03-221-1/+1
| | | p4raw-id: //depot/perl@3124
* add const qualifier to most char* prototypes, handle ripple effectGurusamy Sarathy1999-02-151-8/+9
| | | p4raw-id: //depot/perl@2924
* typo in newHVhv()Gurusamy Sarathy1998-11-081-3/+2
| | | p4raw-id: //depot/perl@2214
* integrate changes#1982,2014,2021 (from maint-5.005)Gurusamy Sarathy1998-10-251-2/+2
| | | | | | | p4raw-link: @2021 on //depot/maint-5.005/perl: ece095e7b265a16d4ec3543b1418100f9c635a87 p4raw-link: @2014 on //depot/maint-5.005/perl: cca0b9804acab4b7678c0f185888d57497a5c2a9 p4raw-link: @1982 on //depot/maint-5.005/perl: fe676099d996f70caaedeb6ae85adc3ee59d2240 p4raw-id: //depot/perl@2059
* lock sv_mutex in new_he() and del_he() for USE_THREADSDrago Goricanec1998-09-251-10/+12
| | | | | | Message-Id: <19980924220109J.drago@otsd.ts.fujitsu.co.jp> Subject: [PATCH 5.005_51] Re: Perl 5.005_51 not yet multi Thread safe p4raw-id: //depot/perl@1880
* provide locked access to string table for USE_THREADSGurusamy Sarathy1998-09-241-0/+4
| | | p4raw-id: //depot/perl@1863
* complete s/foo/PL_foo/ changes (all escaped cases identified withGurusamy Sarathy1998-07-201-4/+4
| | | | | | brute force search script). Result builds and passes all tests on Solaris. win32 and PERL_OBJECT are still untested. p4raw-id: //depot/perl@1578
* PL_ for perl's mallocNick Ing-Simmons1998-07-191-2/+2
| | | p4raw-id: //depot/ansiperl@1569
* PL_ prefix to all perlvars, part1Nick Ing-Simmons1998-07-181-28/+28
| | | | | Builds and passes all tests at one limit i.e. -DPERL_GLOBAL_STRUCT p4raw-id: //depot/ansiperl@1532
* applied suggested fix for xhv_array sizing, with portability tweaksGisle Aas1998-07-051-18/+19
| | | | | | Subject: Re: [PATCH] Re: perl5.004_69 core dump Message-ID: <m3af6qowmk.fsf@furu.g.aas.no> p4raw-id: //depot/perl@1313
* patchlevel up to 5.004_70, various tweaksGurusamy Sarathy1998-07-051-29/+33
| | | | | | | | * fix taint problems due to maintbranch regression * PERL_OBJECT now builds again * deal with C++ strong-typing problems in hv.c * fix mismatch in "reserved word" diagnostic p4raw-id: //depot/perl@1311
* simplify xhv_array sizingGisle Aas1998-07-041-19/+6
| | | | | | Subject: Re: [PATCH] Re: perl5.004_69 core dump Message-ID: <m3yauav9bt.fsf@furu.g.aas.no> p4raw-id: //depot/perl@1304
* added patch for overloading constants, made PERL_OBJECT-awareIlya Zakharevich1998-06-291-0/+39
| | | | | Message-Id: <199806270328.XAA21088@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@1259
* applied patch, regen headersIlya Zakharevich1998-06-231-4/+3
| | | | | | Message-Id: <199806220819.EAA03295@monk.mps.ohio-state.edu> Subject: [PATCH 5.004_67] Malloc size feedback p4raw-id: //depot/perl@1201
* [asperl] integrate mainline changes (untested)Gurusamy Sarathy1998-05-181-1/+1
|\ | | | | p4raw-id: //depot/asperl@1010
| * [win32] make hv_iterinit() return HvKEYS()SynaptiCAD, Inc.1998-05-031-1/+1
| | | | | | | | | | | | Message-Id: <3.0.1.32.19980502162922.009e6320@www.syncad.com> Subject: incorrect return value for hv_iterinit p4raw-id: //depot/win32/perl@914
* | [asperl] integrate mainline changesGurusamy Sarathy1998-04-081-9/+13
|\ \ | |/ | | p4raw-id: //depot/asperl@884
| * [win32] change 866 was incompleteGurusamy Sarathy1998-04-041-1/+1
| | | | | | p4raw-id: //depot/win32/perl@879
| * [win32] fixup hv_free_ent() to not fail on null HeVAL()Gurusamy Sarathy1998-04-031-2/+5
| | | | | | p4raw-id: //depot/win32/perl@866
| * Missing dTHR in hv_fetch_ent when statics moved to thread struct.Malcolm Beattie1998-03-161-0/+1
| | | | | | p4raw-id: //depot/perl@825
| * [win32] merge C<local $tied{foo}> patch, also moved statics inGurusamy Sarathy1998-03-091-9/+7
| | | | | | | | | | [ah]v.c to thrdvar.h p4raw-id: //depot/win32/perl@802
* | [asperl] added AS patch#5 (patch #4 was intentionally skipped afterGurusamy Sarathy1998-02-141-4/+2
| | | | | | | | | | discussion) p4raw-id: //depot/asperl@521
* | [asperl] integrate win32 branch contentsGurusamy Sarathy1998-02-091-1/+17
|\ \ | |/ | | p4raw-id: //depot/asperl@493
| * nomemokGisle Aas1998-02-061-0/+16
| | | | | | p4raw-id: //depot/perl@475
| * Newer -DLEAKTEST patchIlya Zakharevich1998-02-061-1/+1
| | | | | | p4raw-id: //depot/perl@466
* | [asperl] initial merge of latest win32 branch into ASPerlGurusamy Sarathy1998-01-301-27/+41
|\ \ | |/ | | p4raw-id: //depot/asperl@445
| * Gisle's av_unshift tweak, two small patches from chipNick Ing-Simmons1998-01-241-4/+4
| | | | | | | | | | | | and check for NULL in hv_delete in case '~' and tie magic are present p4raw-id: //depot/ansiperl@438
| * [win32] change#398 breaks ENV_IS_CASELESS, fix itGurusamy Sarathy1998-01-081-12/+12
| | | | | | | | | | p4raw-link: @398 on //depot/perl: 0a0bb7c7269ef911ca3981a2b5365150a9ad4cfe p4raw-id: //depot/win32/perl@412
| * Fix hv_delete for 'm'-magic. Based on following patch, modifiedOwen Taylor1998-01-081-16/+30
| | | | | | | | | | | | to cope with ENV_IS_CASELESS: Subject: [perl5.004_56] [PATCH] hv_delete and 'm' magic p4raw-id: //depot/perl@398
* | [asperl] added AS patch#2Gurusamy Sarathy1998-01-301-7/+9
|/ | | p4raw-id: //depot/asperl@443
* [win32] tweak case-insensitive ENV implementationGurusamy Sarathy1998-01-071-11/+23
| | | p4raw-id: //depot/win32/perl@396