summaryrefslogtreecommitdiff
path: root/scope.c
Commit message (Collapse)AuthorAgeFilesLines
* Sarathy pointed out that instead of zeroing heapJarkko Hietaniemi2002-05-191-7/+7
| | | | | it is more prudent to poison it. p4raw-id: //depot/perl@16688
* Companion to #16601: cxinc would create uninitializedJarkko Hietaniemi2002-05-181-2/+7
| | | | | | | | PERL_CONTEXTs. The bug was tickled by the test lib/Math/BigInt/t/upgrade.t, the new test of recurse.t added to check that I got the context stack extension right. Also rewrite recurse.t to use test.pl. p4raw-id: //depot/perl@16679
* Read of uninitialized heap found by Third DegreeJarkko Hietaniemi2002-05-151-1/+3
| | | | | (e.g. in t/op/subst.t) p4raw-id: //depot/perl@16601
* Re: [PATCH scope.c] Re: local($tied->{foo}) leaksDave Mitchell2002-05-071-0/+16
| | | | | Message-ID: <20020508001102.D4118@fdgroup.com> p4raw-id: //depot/perl@16456
* Re: [PATCH scope.c] Re: local($tied->{foo}) leaksDave Mitchell2002-05-041-6/+0
| | | | | Message-ID: <20020503235110.E22026@fdgroup.com> p4raw-id: //depot/perl@16386
* Re: local($tied->{foo}) leaksDave Mitchell2002-05-031-0/+6
| | | | | Message-ID: <20020503211210.B22026@fdgroup.com> p4raw-id: //depot/perl@16383
* Fix bug id 20020427.004 on %^H.Rafael Garcia-Suarez2002-04-301-0/+4
| | | | | | | Add a regression test for %^H. Change the sort pragma implementation to use a global variable instead of %^H. p4raw-id: //depot/perl@16286
* # cpp commands must start in the first column.Jarkko Hietaniemi2002-04-231-3/+3
| | | p4raw-id: //depot/perl@16098
* NetWare tweaks from C Aditya.Jarkko Hietaniemi2002-04-021-0/+4
| | | p4raw-id: //depot/perl@15678
* Copyright++. (Not all the toplevel *.h have one, it seems.)Jarkko Hietaniemi2002-01-231-1/+1
| | | p4raw-id: //depot/perl@14391
* Retract #14144 as Hugo isn't happy with it.Jarkko Hietaniemi2002-01-171-2/+6
| | | p4raw-id: //depot/perl@14307
* Use PerlMemShared for CopSTASHPV and CopFILE. MUCH harder than it sounds!Nick Ing-Simmons2002-01-141-0/+20
| | | | | | | | | | | | Need to use CopXXXXX macros everywhere and add CopSTASH_free Add new scope type and add support for it to scope.c and scope stack dup-er in sv.c. Add savesharedpv(). Also zealous version of Win32's vmem.h to catch all the abuses. With this t/op/fork.t passes even with zealous checking and checker is point a finger at various threads/shared issues. PL_curcop->cop_io is still an issue. p4raw-id: //depot/perlio@14259
* (retracted by #14307)Hugo van der Sanden2002-01-091-6/+2
| | | | | | Subject: Re: [ID 20010912.007] substr reference core dump Message-Id: <200201081917.g08JHoE15793@crypt.compulink.co.uk> p4raw-id: //depot/perl@14144
* Fix READONLY hashes:Nick Ing-Simmons2001-12-191-2/+1
| | | | | | | 1. Discovered need for disabled scope.c part of Jeff's patch. 2. Corrected hv_delete* - entry was being de-linked from chain (patch program not smart enough?) p4raw-id: //depot/perlio@13795
* Tidied version of Jeffrey Friedl's <jfriedl@yahoo.com> restricted hashesNick Ing-Simmons2001-12-181-29/+38
| | | | | | - added delete of READONLY value inhibit & test for same - re-tabbed p4raw-id: //depot/perlio@13760
* Integrate maintperl changes #12268 and #12669;Jarkko Hietaniemi2001-10-261-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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..)
* remove deprecated PERL_OBJECT cruft, it has long since stoppedGurusamy Sarathy2001-08-311-1/+1
| | | | | working in 5.7.x p4raw-id: //depot/perl@11803
* Changes USE_THREADS to USE_5005THREADS in the entire source.Artur Bergman2001-08-271-4/+4
| | | | | | Thanks to H. Merijn Brand for the patch. Some of the comments and or guards might be removable in perl.h now. p4raw-id: //depot/perl@11758
* Re: [ID 20010426.005] Magic not being removed at scope exit [PATCH]John Peacock2001-05-261-2/+2
| | | | | Message-ID: <3B0DBFE9.A7C49084@rowman.com> p4raw-id: //depot/perl@10214
* [LARGE!] symbolic magicDave Mitchell2001-05-201-3/+4
| | | | | Message-Id: <200105191912.UAA23925@gizmo.fdgroup.co.uk> p4raw-id: //depot/perl@10168
* Integrate changes #9584,9587 from maintperl into mainline.Jarkko Hietaniemi2001-04-061-0/+12
| | | | | | | | | | | | | | | | | | | | | | | keep eval"" CVs alive until the end of the statement in which they're called add README.macos (from Chris Nandor) tyop in change#9555 p4raw-link: @9587 on //depot/maint-5.6/perl: d72c2fc956b5cb46ede17d06f89a463c78f1cf5f p4raw-link: @9584 on //depot/maint-5.6/perl: e6fbcc36a54a8afd8dbcdcb9a8d8e178df530b97 p4raw-link: @9555 on //depot/perl: 6a0af2f17bcde4767b90a72eff7083c5effff21d p4raw-id: //depot/perl@9588 p4raw-branched: from //depot/maint-5.6/perl@9583 'branch in' README.macos p4raw-integrated: from //depot/maint-5.6/perl@9583 'copy in' pod/perlfaq9.pod (@9585..) 'merge in' scope.h (@8568..) pod/perl.pod (@8986..) MANIFEST (@9227..) win32/Makefile (@9286..) pp_ctl.c scope.c (@9288..) global.sym (@9289..) embed.h embed.pl objXSUB.h perlapi.c proto.h (@9292..) pod/buildtoc.PL (@9312..) win32/makefile.mk (@9495..) sv.c (@9496..) pod/perlguts.pod (@9514..)
* Integrate changes #9262,9264,9265,9266 from maintperl to mainline.Jarkko Hietaniemi2001-03-211-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | revert the leak fix in change#9142 (problem needs a more experimental fix unsuitable for 5.6.1) do alphabetical sorting by default (for csh compatibility) cut-n-paste goof in change#9264 VMS piping fixes (from Charles Lane) p4raw-link: @9266 on //depot/maint-5.6/perl: 72d1c956969523b19a71b5ffb5af9479f09d0e6a p4raw-link: @9265 on //depot/maint-5.6/perl: 8549c3fc2da30e970df00a46a796a39e843777aa p4raw-link: @9264 on //depot/maint-5.6/perl: 1086ad2319c3ee3e3873c478e76309ea4f03453b p4raw-link: @9262 on //depot/maint-5.6/perl: a89eb504d1201e0dad09aaf86db07d000904f216 p4raw-link: @9142 on //depot/maint-5.6/perl: 26972843796e21c404c9d13ec5ee86e7b952a2bd p4raw-id: //depot/perl@9269 p4raw-integrated: from //depot/maint-5.6/perl@9268 'copy in' ext/File/Glob/Changes ext/File/Glob/bsd_glob.c ext/File/Glob/bsd_glob.h (@5902..) ext/File/Glob/Glob.pm (@7770..) vms/vmspipe.com (@8636..) vms/vms.c (@8986..) 'edit in' ext/File/Glob/Glob.xs (@9264..) 'merge in' scope.c (@9142..)
* Integrate changes #9137,9138,9142 from maintperl into mainline.Jarkko Hietaniemi2001-03-141-2/+8
| | | | | | | | | | | | | | | | | | | | | | fix leak in pregcomp() when RE fails to compile (e.g. m/\\/) remove squelch controls for "Scalars leaked" messages in most places (these are now cured) fix another memory leak reported by purify (tie callbacks that croak can leak when wiping out magic) p4raw-link: @9142 on //depot/maint-5.6/perl: 26972843796e21c404c9d13ec5ee86e7b952a2bd p4raw-link: @9138 on //depot/maint-5.6/perl: ad7f1144250940f9ca43bac32708ec5e718b30ff p4raw-link: @9137 on //depot/maint-5.6/perl: 1f35595ecca168b4f66e3399344799fdbd496d17 p4raw-id: //depot/perl@9144 p4raw-integrated: from //depot/maint-5.6/perl@9143 'copy in' t/pragma/strict-vars (@7318..) t/pragma/warn/regcomp (@7887..) t/op/regexp.t (@8551..) t/op/lex_assign.t (@8987..) 'merge in' t/op/local.t (@5902..) t/pragma/warn/op (@7846..) t/pragma/warnings.t (@7895..) t/comp/proto.t (@8173..) t/pragma/warn/toke (@8570..) regcomp.c (@8777..) scope.c (@8855..) t/op/pat.t (@9076..)
* Integrate pureperl changes #8844,8845,8850 to mainlineJarkko Hietaniemi2001-02-201-4/+0
| | | | | | | | | | | | | | | | | | (via maintperl #8855). Fixed %^H scoping bug Removed GV <-> CV refcount loop Removed %ENV refcount loop p4raw-link: @8850 on //depot/maint-5.6/pureperl: bae1eca58b94313e4b7677aa241da9fad57bb363 p4raw-link: @8845 on //depot/maint-5.6/pureperl: 4d40626c12bbdd62acfbbe3be104711e58cec2f7 p4raw-link: @8844 on //depot/maint-5.6/pureperl: ea100fc6cfd2f0e23aceb84ac0e804e3c9c3c9a2 p4raw-id: //depot/perl@8858 p4raw-integrated: from //depot/maint-5.6/perl@8857 'merge in' gv.c scope.c (@8606..) pp.c (@8635..) op.c (@8758..) perl.c (@8806..)
* save_delete(), err, SAVEDELETE() fixes from Charles Lane.Jarkko Hietaniemi2001-01-091-1/+1
| | | | | Should finish up the bug id 20001205.022. p4raw-id: //depot/perl@8382
* save_delete() Safefree() doesn't (anymore?) work with sharedJarkko Hietaniemi2001-01-081-1/+1
| | | | | | strings, one test failure in op/misc and almost all of lib/b. (Outcomments #8369.) p4raw-id: //depot/perl@8369
* (Outcommented by #8369.)Simon Cozens2001-01-081-0/+1
| | | | | | | | Subject: Re: Perl BugID 20001205.022 ---- save_delete Message-ID: <20010106114840.A13227@deep-dark-truthful-mirror.perlhacker.org> The save_delete() does need the Safefree. p4raw-id: //depot/perl@8368
* Bump up Larry's copyright.Jarkko Hietaniemi2001-01-011-1/+1
| | | p4raw-id: //depot/perl@8289
* Re: [Fwd: BUG 20001205.022] Local on Hash elementsSimon Cozens2000-12-111-1/+0
| | | | | Message-ID: <20001211012144.A23467@deep-dark-truthful-mirror.perlhacker.org> p4raw-id: //depot/perl@8077
* Re: [PATCH] The largest hoax of all times?Ilya Zakharevich2000-12-051-1/+1
| | | | | | | | | | | | | | | | | | Date: Tue, 5 Dec 2000 00:40:25 -0500 Message-ID: <20001205004025.A4050@monk.mps.ohio-state.edu> Subject: Re: [PATCH] The largest hoax of all times? From: Ilya Zakharevich <ilya@math.ohio-state.edu> Date: Mon, 4 Dec 2000 23:55:53 -0500 Message-ID: <20001204235553.A1140@monk.mps.ohio-state.edu> Subject: Re: [PATCH] The largest hoax of all times? From: Ilya Zakharevich <ilya@math.ohio-state.edu> Date: Tue, 5 Dec 2000 01:28:45 -0500 Message-ID: <20001205012844.A4227@monk.mps.ohio-state.edu> Fix the unpredictable order of DESTROYs. p4raw-id: //depot/perl@7991
* dTHR is a nop in 5.6.0 onwards. Ergo, it can go.Jarkko Hietaniemi2000-12-051-48/+0
| | | p4raw-id: //depot/perl@7984
* C<foreach my $x ...> in pseudo-fork()ed process may diddleGurusamy Sarathy2000-11-251-0/+19
| | | | | | | | | | parent's memory; fix it by keeping track of the actual pad offset rather than a raw pointer (this change is probably also relevant to non-ithreads case to avoid fallout from reallocs of the pad array, but is currently only enabled for the ithreads case in the interests of minimal disruption to existing "well tested" code) p4raw-id: //depot/perl@7858
* [ID 20001024.007] [PATCH] "Dump local *FH" causes SEGVMike Guy2000-10-251-0/+1
| | | | | Message-Id: <E13o4c8-00076u-00@libra.cus.cam.ac.uk> p4raw-id: //depot/perl@7435
* fix small eval"" memory leaks under USE_ITHREADSGurusamy Sarathy2000-06-021-6/+26
| | | p4raw-id: //depot/perl@6194
* fixes for most warnings identified by gcc -WallGurusamy Sarathy2000-03-051-1/+0
| | | p4raw-id: //depot/perl@5540
* Resync with mainlineCharles Bailey2000-02-261-4/+5
|\ | | | | p4raw-id: //depot/vmsperl@5269
| * make change#3386 a build-time option (avoids problems due toGurusamy Sarathy2000-02-201-2/+2
| | | | | | | | | | | | | | perl_run() longjmping out) p4raw-link: @3386 on //depot/perl: 312caa8e97f1c7ee342a9895c2f0e749625b4929 p4raw-id: //depot/perl@5162
| * more purification (pp_require() could access free memory; vdie()Gurusamy Sarathy2000-02-131-2/+3
| | | | | | | | | | | | | | | | could think message was random length when passed a null argument; utilize() didn't set up the hash for the method name leading to pp_method_named() accessing random state; PL_curpm wasn't zeroed properly) p4raw-id: //depot/perl@5072
| * 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
| * fix pad_alloc panic from C<my $w; sub { my($i) = @_; sub { $w } }>Gurusamy Sarathy2000-02-041-0/+7
| | | | | | p4raw-id: //depot/perl@4970
| * introduce save_I8() for saving byte valuesGurusamy Sarathy1999-12-081-0/+14
| | | | | | p4raw-id: //depot/perl@4665
| * more complete pseudo-fork() support for WindowsGurusamy Sarathy1999-12-011-3/+22
| | | | | | p4raw-id: //depot/perl@4602
| * Integrate with Sarathy.Jarkko Hietaniemi1999-11-111-1/+1
| |\ | | | | | | p4raw-id: //depot/cfgperl@4549
| | * another change towards a shareable optree: avoid pointer to filegvGurusamy Sarathy1999-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | in COP; revert parts of change#4485 and s/xcv_filegv/xcv_file/ (CvFILE() may yet come in handy somewhere); adjust compiler doodads to suit p4raw-link: @4485 on //depot/perl: b195d4879f55e1610299cb9b1b55356940c2a577 p4raw-id: //depot/perl@4545
| * | So many printfs, so little time.Jarkko Hietaniemi1999-11-061-2/+2
| |/ | | | | p4raw-id: //depot/cfgperl@4530
| * macros for COP.cop_filegv accessGurusamy Sarathy1999-11-011-1/+1
| | | | | | p4raw-id: //depot/perl@4505
| * make nested ARGV/$^I loops work correctly; fixes several bugsGurusamy Sarathy1999-10-311-1/+6
| | | | | | | | | | | | | | in the way ARGV state was handled in readline(); writing a subroutine to do inplace edits is now possible, provided *ARGV, *ARGVOUT, $^I and $_ are localized where needed p4raw-id: //depot/perl@4502
| * More printf-fixes (see also #4426).Jarkko Hietaniemi1999-10-231-36/+38
| | | | | | p4raw-id: //depot/cfgperl@4429
| * avoid inefficiency in change#3386 (every longjmp() was followedGurusamy Sarathy1999-10-141-5/+6
| | | | | | | | | | | | | | by an avoidable call to setjmp()) p4raw-link: @3386 on //depot/perl: 312caa8e97f1c7ee342a9895c2f0e749625b4929 p4raw-id: //depot/perl@4372
| * revert SAVEDESTRUCTOR() to accepting void(*)(void*) for sourceGurusamy Sarathy1999-10-101-2/+16
| | | | | | | | | | | | compatibility; introduce SAVEDESTRUCTOR_X() that accepts void(*)(pTHX_ void*) p4raw-id: //depot/perl@4339