perl.git
10 years agoUpdate Module::Build to 0.35
David Golden [Thu, 27 Aug 2009 15:41:10 +0000 (11:41 -0400)] 
Update Module::Build to 0.35

0.35 - Thu Aug 27 09:12:02 EDT 2009

 Bug fixes:
 - Fix t/destinations.t segfault on 5.6.2

0.34_06 - Sat Aug 22 21:58:26 EDT 2009

 Bug fixes:
 - Multiple test fixes for OS2 [Ilya Zakharevich]
 - Generated.ppd files use :utf8 if possible (RT#48827) [Olivier Mengue]
 - Fixed preservation of custom install_paths on resume (RT#41166)
   [David Golden]
 - Warn instead of crashing when Pod::Man tries to create files with
   colons on vfat partitions on unix (RT#45544) [David Golden]

0.34_05 - Sun Aug  9 22:31:37 EDT 2009

 Bug fixes:
 - When auto_configure_requires is true (the default), Module::Build will
   only add last 'major' version of Module:Build (e.g. 0.XX) to
   configure_requires to avoid specifying a minor development release not
   available on CPAN [David Golden]

0.34_04 - Sat Aug  8 11:02:24 EDT 2009

 Other:
 - Added documentation warning that 'get_options' should be capitalized
   to avoid conflicting with future Module::Build options and changed
   the examples accordingly.

0.34_03 - Sat Aug  8 07:39:16 EDT 2009

 Bug fixes:
 - Fixed failing xs.t if /tmp is mounted noexec (RT#47331) [David Golden]
 - Fixed failing debug.t on VMS (RT#48362) [Craig Berry]
 - Prevent par.t from dying on error in .zip extraction [David Golden]
 - Fixed potential runthrough.t failure on 5.6.2 [David Golden]

 Other:
 - Archive::Tar changed from 'requires' to 'recommends' so non-authors
   without IO::Zlib can still use Module::Build to install modules
   [reported by Matt Trout, fix by David Golden]

10 years agot/harness and t/TEST can both use the same _run_test() to invoke tests.
Nicholas Clark [Thu, 27 Aug 2009 13:26:20 +0000 (14:26 +0100)] 
t/harness and t/TEST can both use the same _run_test() to invoke tests.

Now the logic to invoke tests is in exactly one place, we can refactor it with
impunity.

10 years agoShare common code in t/TEST and t/harness, by having harness require ./TEST
Nicholas Clark [Thu, 27 Aug 2009 12:23:38 +0000 (13:23 +0100)] 
Share common code in t/TEST and t/harness, by having harness require ./TEST

The logical way to do this would be to have the common code in a file both
require or use. However, t/TEST needs to still work, to generate test results,
even if require isn't working, so we cannot do that. t/harness has no such
restriction, so it is quite acceptable to have it require t/TEST.

10 years agoSpeed up repeatcpy() by at least 40% for 1-char or numerous repeats
Vincent Pit [Thu, 27 Aug 2009 09:13:09 +0000 (11:13 +0200)] 
Speed up repeatcpy() by at least 40% for 1-char or numerous repeats

And don't make it receive the interpreter anymore.

For 1-char repeats, use memset(). Otherwise, use the old implementation up
to some (small) length, and then use memcpy() in a binary manner, based on
what we previously copied.

Note that we use memcpy() so both strings shouldn't overlap. The previous
implementation didn't allow this as well. This would be a good place to use
the restrict keyword from C99. I'm not sure if Configure has a probe for it.

10 years agodelimcopy(), ibcmp(), ibcmp_locale(), instr(), ninstr() and rninstr() from util.c...
Vincent Pit [Thu, 27 Aug 2009 08:38:34 +0000 (10:38 +0200)] 
delimcopy(), ibcmp(), ibcmp_locale(), instr(), ninstr() and rninstr() from util.c don't need the interpreter as well

10 years agoB - The Perl Compiler (wrong name)
Reini Urban [Thu, 27 Aug 2009 08:19:26 +0000 (10:19 +0200)] 
B - The Perl Compiler (wrong name)

The Perl Compilers are for some time in B::C and not B. B is only the
backend.

10 years agoDon't pass the the interpreter to is_ascii_string(), is_utf8_char(), is_utf8_string...
Vincent Pit [Wed, 26 Aug 2009 22:11:38 +0000 (00:11 +0200)] 
Don't pass the the interpreter to is_ascii_string(), is_utf8_char(), is_utf8_string(), is_utf8_string_loclen() as they don't need it

10 years agofix threaded build after 8ff3e83b
Chip Salzenberg [Wed, 26 Aug 2009 22:17:55 +0000 (15:17 -0700)] 
fix threaded build after 8ff3e83b

10 years agoIn C<use utf8; a=>'b'>, do not set utf8 flag on 'a' [perl #68812]
Chip Salzenberg [Wed, 26 Aug 2009 21:33:15 +0000 (14:33 -0700)] 
In C<use utf8; a=>'b'>, do not set utf8 flag on 'a' [perl #68812]

10 years agoset utf8 bit on inferred method names when C<use utf8>
Chip Salzenberg [Wed, 26 Aug 2009 21:05:15 +0000 (14:05 -0700)] 
set utf8 bit on inferred method names when C<use utf8>

10 years agoMerge branch 'blead' of ssh://perl5.git.perl.org/perl into blead
Chip Salzenberg [Wed, 26 Aug 2009 20:26:49 +0000 (13:26 -0700)] 
Merge branch 'blead' of ssh://perl5.git.perl.org/perl into blead

10 years agoNew debugging flag -DB now dumps subroutine definitions,
Chip Salzenberg [Wed, 26 Aug 2009 20:25:52 +0000 (13:25 -0700)] 
New debugging flag -DB now dumps subroutine definitions,
 leaving -Dx for its original purpose of dumping syntax trees.

10 years agoNo need to use File::Spec, as all names remain internal to perl.
Nicholas Clark [Wed, 26 Aug 2009 19:55:36 +0000 (20:55 +0100)] 
No need to use File::Spec, as all names remain internal to perl.

(This will make merging the code in t/TEST and t/harness easier.)

10 years agoBreak out the code that finds tests in MANIFEST into _tests_from_manifest().
Nicholas Clark [Wed, 26 Aug 2009 19:43:11 +0000 (20:43 +0100)] 
Break out the code that finds tests in MANIFEST into _tests_from_manifest().

10 years ago%OVER was removed in October 2001 with 6ff868ee and 73ddec28.
Nicholas Clark [Wed, 26 Aug 2009 18:39:20 +0000 (19:39 +0100)] 
%OVER was removed in October 2001 with 6ff868ee and 73ddec28.

10 years agot/TEST shouldn't use -M options until we've tested that they work.
Nicholas Clark [Wed, 26 Aug 2009 18:06:55 +0000 (19:06 +0100)] 
t/TEST shouldn't use -M options until we've tested that they work.

Also, t/TEST doesn't need to set $ENV{PERL_CORE} as t/TestInit.pm does this.
t/TestInit.pm should also add '.' to @INC (except under tainting) to correctly
emulate the include path of this perl binary once it and its libraries are
installed.

Fix t/run/cloexec.t to not rely on -I../lib being passed as a command-line
arguments. t/run/*.t *test* that command line arguments work, so they can't
be called with command line arguments that are mandatory for them to work.

10 years agoEnsure $ENV{PERL_CORE} is always set, but correctly tainted.
Nicholas Clark [Wed, 26 Aug 2009 17:42:29 +0000 (18:42 +0100)] 
Ensure $ENV{PERL_CORE} is always set, but correctly tainted.

Hopefully a better solution than a19106168e3a7e2a. (change 19964)

10 years agoCargo-cult addition of op_say to the MAD code
Rafael Garcia-Suarez [Wed, 26 Aug 2009 13:44:44 +0000 (15:44 +0200)] 
Cargo-cult addition of op_say to the MAD code

(and make some more TODO tests pass)

10 years agoThis MAD test now passes here, so unmark it as TODO
Rafael Garcia-Suarez [Wed, 26 Aug 2009 13:39:03 +0000 (15:39 +0200)] 
This MAD test now passes here, so unmark it as TODO

10 years agoMake MAD understand the "..." operator
Rafael Garcia-Suarez [Wed, 26 Aug 2009 13:30:35 +0000 (15:30 +0200)] 
Make MAD understand the "..." operator

10 years agoUse less constness in MAD code
Rafael Garcia-Suarez [Wed, 26 Aug 2009 12:32:22 +0000 (14:32 +0200)] 
Use less constness in MAD code

This suppresses warnings, because sometimes the constness was taken away

10 years agoNote the change to Socket in perldelta.
Rafael Garcia-Suarez [Wed, 26 Aug 2009 09:56:00 +0000 (11:56 +0200)] 
Note the change to Socket in perldelta.

10 years agoBump version of Socket.pm
Rafael Garcia-Suarez [Wed, 26 Aug 2009 09:53:15 +0000 (11:53 +0200)] 
Bump version of Socket.pm

10 years agoAdd support for Abstract namespace sockets
Lubomir Rintel [Tue, 25 Aug 2009 15:09:53 +0000 (17:09 +0200)] 
Add support for Abstract namespace sockets

Abstract namespace sockets are Linux-specific socket type that live in
AF_UNIX family, slightly abusing it to be able to use arbitrary
character arrays as addresses: They start with nul byte and are not
terminated by nul byte, but with the length passed to the socket()
system call.

Added regression test for the correct address length computation.

Signed-off-by: Lubomir Rintel <lkundrak@fedoraproject.org>
10 years agoImprove perlhack instructions about gprof
John P. Linderman [Wed, 26 Aug 2009 07:14:13 +0000 (09:14 +0200)] 
Improve perlhack instructions about gprof

10 years agoabd39864 broke t/harness when $ENV{TEST_JOBS} was not set. Oops. Fixed.
Nicholas Clark [Tue, 25 Aug 2009 21:06:28 +0000 (22:06 +0100)] 
abd39864 broke t/harness when $ENV{TEST_JOBS} was not set. Oops. Fixed.

10 years agoRefactor t/harness to always use TAP::Harness.
Michael G. Schwern [Wed, 4 Mar 2009 04:42:55 +0000 (20:42 -0800)] 
Refactor t/harness to always use TAP::Harness.

No reason to screw around with half Test::Harness, half TAP::Harness.
This normalization will make it easier to adapt the ext/Module tests.

[Edited to remove the code related to the fork option, which was dropped from
TAP::Harness with version 3.17. The now-unknown fork argument to a constructor
generates an error.]

10 years agoDocument the purpose of TestInit
Michael G. Schwern [Tue, 3 Mar 2009 00:12:33 +0000 (16:12 -0800)] 
Document the purpose of TestInit

[Ammended with a grammar fix]

10 years agoRefactoring to consoldate some hard coded paths.
Michael G. Schwern [Tue, 3 Mar 2009 00:11:25 +0000 (16:11 -0800)] 
Refactoring to consoldate some hard coded paths.

I was going to do more extensive work here but it wasn't necessary.  Left
the refactorings in.

10 years agoThere's no reason to load TestInit in TEST.
Michael G. Schwern [Tue, 3 Mar 2009 00:09:21 +0000 (16:09 -0800)] 
There's no reason to load TestInit in TEST.

Since TestInit executes code on loading can be actively bad.

10 years agoQuote "strict"->import and "warnings"->import to quiet warnings.
Michael G. Schwern [Tue, 3 Mar 2009 00:08:38 +0000 (16:08 -0800)] 
Quote "strict"->import and "warnings"->import to quiet warnings.

[Ammended slightly to invert the change in 3fd4b35989]

10 years agoRefactor the code to run the test into _run_test()
Michael G. Schwern [Mon, 2 Mar 2009 01:03:55 +0000 (17:03 -0800)] 
Refactor the code to run the test into _run_test()

Also turn $valgrind_log into $Valgrind_Log, because it's really a global config variable.

10 years agoRefactoring to move the code to read the test for special options into its own function.
Michael G. Schwern [Mon, 2 Mar 2009 00:55:01 +0000 (16:55 -0800)] 
Refactoring to move the code to read the test for special options into its own function.

Get the hell out of the way so I can read this mess.

[ammended slightly by Nicholas Clark to keep require strict commented out]

10 years agoThis is reading the first line of the test, not running it.
Michael G. Schwern [Mon, 2 Mar 2009 00:40:59 +0000 (16:40 -0800)] 
This is reading the first line of the test, not running it.

10 years agoPurge 3 items of documentation change, which are insufficiently noteworthy.
Nicholas Clark [Tue, 25 Aug 2009 14:13:57 +0000 (15:13 +0100)] 
Purge 3 items of documentation change, which are insufficiently noteworthy.

10 years agoSyle nit - we're not marking things (XS).
Nicholas Clark [Tue, 25 Aug 2009 14:10:31 +0000 (15:10 +0100)] 
Syle nit - we're not marking things (XS).

10 years agoTidy up some more Pod nits.
Nicholas Clark [Tue, 25 Aug 2009 14:03:57 +0000 (15:03 +0100)] 
Tidy up some more Pod nits.

10 years agoRun t/run/*.t before t/cmd/*.t, making the order base, cmd, run, and note why.
Nicholas Clark [Tue, 25 Aug 2009 09:38:41 +0000 (10:38 +0100)] 
Run t/run/*.t before t/cmd/*.t, making the order base, cmd, run, and note why.

base first, as TEST bails out if that can't run
then comp, to validate that require works
then run, to validate that -M works
then we know we can -MTestInit for everything else, making life simpler)

10 years agoRemove File::Spec from t/TEST - VMS is fine without it. Win32 doesn't use it.
Nicholas Clark [Tue, 25 Aug 2009 08:31:44 +0000 (09:31 +0100)] 
Remove File::Spec from t/TEST - VMS is fine without it. Win32 doesn't use it.

Also remove one complex alternation regexp, and replace it with a hash lookup.
At this stage do we trust the regexp engine that much?

[Really TEST shouldn't be relying on require working, and hence being able to
pull in modules to do essential parts of its work. And modules that rely on
OO dispatch - :-(]

10 years agoString with NULL auto-increment bug fix
Bo Borgerson [Sun, 16 Aug 2009 15:07:39 +0000 (11:07 -0400)] 
String with NULL auto-increment bug fix

Check position relative to end of string length rather than whether
char is NULL at end of initial alphanumerics in Perl_sv_inc

10 years agoBump Safe version to 2.19
Rafael Garcia-Suarez [Tue, 25 Aug 2009 07:36:42 +0000 (09:36 +0200)] 
Bump Safe version to 2.19

10 years agoMerge branch 'blead' into dual/Safe
Rafael Garcia-Suarez [Tue, 25 Aug 2009 07:34:18 +0000 (09:34 +0200)] 
Merge branch 'blead' into dual/Safe

10 years agoAdded two removed platforms to the Perl 5.11.0 delta
Jesse Vincent [Mon, 24 Aug 2009 20:34:29 +0000 (16:34 -0400)] 
Added two removed platforms to the Perl 5.11.0 delta

10 years agoAdd an encoding line, as the file is in UTF-8.
Nicholas Clark [Mon, 24 Aug 2009 17:32:14 +0000 (18:32 +0100)] 
Add an encoding line, as the file is in UTF-8.

10 years agoPod copy editing - whitespace cleanup, and F<>/C<> corrections.
Nicholas Clark [Mon, 24 Aug 2009 17:30:38 +0000 (18:30 +0100)] 
Pod copy editing - whitespace cleanup, and F<>/C<> corrections.

10 years agoNote that File::Copy is actually at 2.16, and that cp needs describing.
Nicholas Clark [Mon, 24 Aug 2009 17:14:49 +0000 (18:14 +0100)] 
Note that File::Copy is actually at 2.16, and that cp needs describing.

10 years agoconstant has been upgraded to 1.19. Describe the improvements.
Nicholas Clark [Mon, 24 Aug 2009 17:11:02 +0000 (18:11 +0100)] 
constant has been upgraded to 1.19. Describe the improvements.

10 years agoThe attrs pragma has been removed, not upgraded.
Nicholas Clark [Mon, 24 Aug 2009 17:07:47 +0000 (18:07 +0100)] 
The attrs pragma has been removed, not upgraded.

10 years agoCorrect some 5.10.1s that should be 5.11.0, and one 5.10.2 to 5.11.1.
Nicholas Clark [Mon, 24 Aug 2009 17:00:27 +0000 (18:00 +0100)] 
Correct some 5.10.1s that should be 5.11.0, and one 5.10.2 to 5.11.1.

10 years agoNote that the smartmatch changes in 5.11.0 are the same as in 5.10.1.
Nicholas Clark [Mon, 24 Aug 2009 16:59:15 +0000 (17:59 +0100)] 
Note that the smartmatch changes in 5.11.0 are the same as in 5.10.1.

10 years agoMerge branch 'blead' of ssh://perl5.git.perl.org/gitroot/perl into blead
Jesse Vincent [Mon, 24 Aug 2009 16:09:21 +0000 (12:09 -0400)] 
Merge branch 'blead' of ssh://perl5.git.perl.org/gitroot/perl into blead

* 'blead' of ssh://perl5.git.perl.org/gitroot/perl:
  Note that linearising C3 MRO is now 40% faster for single inheritance.

10 years agoMore work toward a usable 5.11.0 delta file
Jesse Vincent [Mon, 24 Aug 2009 16:08:44 +0000 (12:08 -0400)] 
More work toward a usable 5.11.0 delta file

10 years agoNote that linearising C3 MRO is now 40% faster for single inheritance.
Nicholas Clark [Mon, 24 Aug 2009 15:50:23 +0000 (16:50 +0100)] 
Note that linearising C3 MRO is now 40% faster for single inheritance.

10 years agoMerge branch 'blead' of ssh://perl5.git.perl.org/gitroot/perl into blead
Jesse Vincent [Mon, 24 Aug 2009 15:35:55 +0000 (11:35 -0400)] 
Merge branch 'blead' of ssh://perl5.git.perl.org/gitroot/perl into blead

* 'blead' of ssh://perl5.git.perl.org/gitroot/perl:
  Updated CPANPLUS::Dist::Build to CPAN version 0.38

10 years agoForward ported perl 5.10.1 changes into perl5110delta.pod per nicholas
Jesse Vincent [Mon, 24 Aug 2009 15:34:41 +0000 (11:34 -0400)] 
Forward ported perl 5.10.1 changes into perl5110delta.pod per nicholas

10 years agoUpdated CPANPLUS::Dist::Build to CPAN version 0.38
Chris 'BinGOs' Williams [Mon, 24 Aug 2009 15:16:52 +0000 (16:16 +0100)] 
Updated CPANPLUS::Dist::Build to CPAN version 0.38

Hi,

Attached is a patch to update the CPANPLUS::Dist::Build in core
to the CPAN version 0.38

Highlights from the Changelog:
==============================
0.38 Mon Aug 24 13:59:11 BST 2009
  - Cosmetic change to the test output message so it
    matches CPANPLUS::Dist::MM (bingos)
==============================

Many thanks,

--
Chris Williams
aka BinGOs
PGP ID 0x4658671F
http://www.gumbynet.org.uk
==========================

From 2c3e6d8f82c08a5817d74a8407ebcdbbd86ebb15 Mon Sep 17 00:00:00 2001
From: Chris Williams <chris@bingosnet.co.uk>
Date: Mon, 24 Aug 2009 16:09:47 +0100
Subject: [PATCH] Updated CPANPLUS::Dist::Build to CPAN version 0.38

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
10 years agoFix a Deparse bug - constants and PCSs were appearing as subroutine stubs.
Nicholas Clark [Mon, 24 Aug 2009 13:17:11 +0000 (14:17 +0100)] 
Fix a Deparse bug - constants and PCSs were appearing as subroutine stubs.

(Because constants and other Proxy Constant Subroutines are stored in the
symbol table as references, and in 5.11.0 RVs merged with IVs, and B::Deparse
knows that an IV in the symbol table is a stub declaration for a subroutine
with no prototype, so B::Deparse "knew" that that's what it was.)

10 years agoRemove the MacOS Classic support from deparse.t (as it's getting in the way).
Nicholas Clark [Mon, 24 Aug 2009 12:37:23 +0000 (13:37 +0100)] 
Remove the MacOS Classic support from deparse.t (as it's getting in the way).

10 years agoMerge commit 'shlomif/blead' into blead
Rafael Garcia-Suarez [Mon, 24 Aug 2009 08:24:45 +0000 (10:24 +0200)] 
Merge commit 'shlomif/blead' into blead

10 years agoFix URL to Unicode 5.1.0 notable changes
Leon Brocard [Mon, 24 Aug 2009 08:22:44 +0000 (09:22 +0100)] 
Fix URL to Unicode 5.1.0 notable changes

10 years agoMinor improvements to perldebug.pod
Tom Hukins [Mon, 24 Aug 2009 08:01:51 +0000 (10:01 +0200)] 
Minor improvements to perldebug.pod

Minor improvements to the section on profiling.

Remove suggestions that Devel::DProf might be the most popular
profiler and reference perlperf.pod.

10 years ago[perl #68708] Add "CARP_NOT" section to Carp's POD
Alan Grover [Mon, 24 Aug 2009 07:38:31 +0000 (09:38 +0200)] 
[perl #68708] Add "CARP_NOT" section to Carp's POD

I Carp's POD, @CARP_NOT is mentioned but it's use is not clear. It is
particularly not clear that @CARP_NOT is a variable in _your_ package.

I propose adding a section to the POD, before the %Carp::Internal
section.

10 years agorelease_managers_guide: lots of tweaks to post-release tasks
David Mitchell [Sun, 23 Aug 2009 16:41:42 +0000 (17:41 +0100)] 
release_managers_guide: lots of tweaks to post-release tasks

10 years agoadd 5.10.1 to perlhist in blead
David Mitchell [Sun, 23 Aug 2009 16:36:42 +0000 (17:36 +0100)] 
add 5.10.1 to perlhist in blead

10 years agoadd perl5101delta
David Mitchell [Sun, 23 Aug 2009 16:33:11 +0000 (17:33 +0100)] 
add perl5101delta

10 years agoadd Porting/perldelta_template,
David Mitchell [Sun, 23 Aug 2009 15:17:46 +0000 (16:17 +0100)] 
add Porting/perldelta_template,
a skeleton outline of a perldelta file

10 years agoFix parsing of readline(FH) [perl #68458]
Rafael Garcia-Suarez [Sun, 23 Aug 2009 13:28:22 +0000 (15:28 +0200)] 
Fix parsing of readline(FH) [perl #68458]

This was broken by commit 984f9f66477bc722578262ae8520584e44e881af,
which was committed to solve bug [perl #53806].

Basically, to make everyone happy, we need only to enforce strictures
on barewords that follow the specially parsed keywords "print" and
"exec" (and similar) -- except when they have been already parsed.

10 years agomore release_managers_guide tweaks
David Mitchell [Sat, 22 Aug 2009 22:17:57 +0000 (23:17 +0100)] 
more release_managers_guide tweaks

10 years agoUpdate Module::CoreList for 5.10.1
David Mitchell [Sat, 22 Aug 2009 21:51:15 +0000 (22:51 +0100)] 
Update Module::CoreList for 5.10.1

10 years agoEliminate *_ALLOCATED_HEAD and *_HEAD macros which are now used only once.
Nicholas Clark [Sat, 18 Jul 2009 18:32:50 +0000 (19:32 +0100)] 
Eliminate *_ALLOCATED_HEAD and *_HEAD macros which are now used only once.

10 years agoEliminate the remaining definitions for *_allocated structs.
Nicholas Clark [Sat, 18 Jul 2009 17:34:06 +0000 (18:34 +0100)] 
Eliminate the remaining definitions for *_allocated structs.

10 years agomention perlivp in release_managers_guide
David Mitchell [Sat, 22 Aug 2009 19:45:09 +0000 (20:45 +0100)] 
mention perlivp in release_managers_guide

10 years agobetter document smart match overloading
David Mitchell [Sat, 22 Aug 2009 19:43:00 +0000 (20:43 +0100)] 
better document smart match overloading

10 years agore-apply boilerplate to CGI test files
David Mitchell [Sat, 22 Aug 2009 17:16:24 +0000 (18:16 +0100)] 
re-apply boilerplate to CGI test files

10 years agoupgrade GCI from 3.43 to 3.45
David Mitchell [Sat, 22 Aug 2009 17:02:13 +0000 (18:02 +0100)] 
upgrade GCI from 3.43 to 3.45

Note that this blows away some local mods:
 * b<> to B<> fixes
 * core boilerplate for upload.t and uploadInfo.t

10 years agoadd the CGI "default_value for popup_menu()" fix from 3.45
David Mitchell [Sat, 22 Aug 2009 16:32:53 +0000 (17:32 +0100)] 
add the CGI "default_value for popup_menu()" fix from 3.45

10 years agoIn pp_entersub, replace gv_fetchpv() with gv_fetchpvs().
Nicholas Clark [Sat, 22 Aug 2009 17:08:06 +0000 (18:08 +0100)] 
In pp_entersub, replace gv_fetchpv() with gv_fetchpvs().

10 years agoIn Perl_newATTRSUB(), refactor the calls to gv_fetch*(), reducing if blocks.
Nicholas Clark [Sat, 22 Aug 2009 16:28:25 +0000 (17:28 +0100)] 
In Perl_newATTRSUB(), refactor the calls to gv_fetch*(), reducing if blocks.

10 years agoIn Perl_newATTRSUB(), we know the lengths, so can avoid gv_fetchpv().
Nicholas Clark [Sat, 22 Aug 2009 15:28:32 +0000 (16:28 +0100)] 
In Perl_newATTRSUB(), we know the lengths, so can avoid gv_fetchpv().

Brought to you by the Campaign for the Elimination of strlen().

10 years agogv_efullname3() could return NULL, so mro::_nextcan() must cope (and croak()).
Nicholas Clark [Fri, 21 Aug 2009 21:11:47 +0000 (22:11 +0100)] 
gv_efullname3() could return NULL, so mro::_nextcan() must cope (and croak()).

10 years agosv_newmortal() is faster than sv_2mortal(newSV(0))
Nicholas Clark [Fri, 21 Aug 2009 20:50:26 +0000 (21:50 +0100)] 
sv_newmortal() is faster than sv_2mortal(newSV(0))

10 years agoEliminate SV leak in mro::_nextcan - hv_store_ent()'s "key" doesn't take a ref.
Nicholas Clark [Fri, 21 Aug 2009 20:28:18 +0000 (21:28 +0100)] 
Eliminate SV leak in mro::_nextcan - hv_store_ent()'s "key" doesn't take a ref.

10 years agoFix build warning in mro.c
Jerry D. Hedden [Fri, 21 Aug 2009 14:45:22 +0000 (10:45 -0400)] 
Fix build warning in mro.c

10 years agoAdd clear magic to %^H so that the HE chain is reset when you empty it.
Zefram [Thu, 20 Aug 2009 23:49:14 +0000 (01:49 +0200)] 
Add clear magic to %^H so that the HE chain is reset when you empty it.

This fixes [perl #68590] : %^H not lexical enough.

10 years agoUse the constant _CAN_PCS to optimise out things that can't happen pre 5.10
Nicholas Clark [Fri, 21 Aug 2009 10:04:06 +0000 (11:04 +0100)] 
Use the constant _CAN_PCS to optimise out things that can't happen pre 5.10

10 years agoRemove a refactoring typo - don't post-increment $flush_mro at the sub's end.
Nicholas Clark [Fri, 21 Aug 2009 08:53:47 +0000 (09:53 +0100)] 
Remove a refactoring typo - don't post-increment $flush_mro at the sub's end.

10 years agoIn mro_get_linear_isa_c3() optimise even if AvARRAY(isa_lin) is NULL.
Nicholas Clark [Fri, 21 Aug 2009 08:40:03 +0000 (09:40 +0100)] 
In mro_get_linear_isa_c3() optimise even if AvARRAY(isa_lin) is NULL.

It can only be NULL if AvFILLp(isa_lin) is -1, and the code in the fast path
block will work cleanly in that case too.

10 years agoincremental improvement in ~~ documentation, already in maint-5.10
Chip Salzenberg [Thu, 20 Aug 2009 21:37:01 +0000 (14:37 -0700)] 
incremental improvement in ~~ documentation, already in maint-5.10

10 years agoInstead of trusting mro::get_linear_isa(), test it against the expected output.
Nicholas Clark [Thu, 20 Aug 2009 20:12:44 +0000 (21:12 +0100)] 
Instead of trusting mro::get_linear_isa(), test it against the expected output.

10 years agoOptimise mro_get_linear_isa_c3() when there is a single parent. 40% speed up.
Nicholas Clark [Thu, 20 Aug 2009 20:09:03 +0000 (21:09 +0100)] 
Optimise mro_get_linear_isa_c3() when there is a single parent. 40% speed up.

Idea blatantly copied from chromatic's analogous change to parrot, r38477.

10 years agoadd -DM flag to track smartmatch resolution
David Mitchell [Thu, 20 Aug 2009 18:29:35 +0000 (19:29 +0100)] 
add -DM flag to track smartmatch resolution

10 years agoOptimise S_mro_get_linear_isa_dfs() when dealing with the first parent class.
Nicholas Clark [Thu, 20 Aug 2009 15:02:40 +0000 (16:02 +0100)] 
Optimise S_mro_get_linear_isa_dfs() when dealing with the first parent class.

Benchmarking with single inheritance suggests that this is 10% faster.

10 years agoPerl_newHVhv() should copy immortal values as-is, such as PL_sv_undef
Nicholas Clark [Thu, 20 Aug 2009 14:56:18 +0000 (15:56 +0100)] 
Perl_newHVhv() should copy immortal values as-is, such as PL_sv_undef

Currently it calls newSVsv() always, which copies the value, but the immortal
SVs are used as much for their addresses as their values. You can't get the
immortals into HVs from Perl-space, except for PL_sv_placeholder, and any hash
with those will take the else block, where the call to Perl_hv_iternext_flags()
won't be returning placeholders anyway. Hence If XS code has gone to the
trouble to get the "impossible" in there, they had a reason for it.

I am assuming that Perl_hv_copy_hints_hv() should stay as-is, as it is
documented that only strings and integers are supported values for %^H.

10 years agoTeach perlivp about the new stucture of the IO::Compress module suite
Vincent Pit [Thu, 20 Aug 2009 08:26:59 +0000 (10:26 +0200)] 
Teach perlivp about the new stucture of the IO::Compress module suite

This fixes [perl #68682] : 5.10.1 ( RC1 and RC2 ) perlivp fails IO/Compress

10 years agoAdd PERL_DISABLE_PMC to the list of -V's compile-time options.
Nicholas Clark [Wed, 19 Aug 2009 16:22:28 +0000 (17:22 +0100)] 
Add PERL_DISABLE_PMC to the list of -V's compile-time options.

10 years agobump Safe version to 2.18
David Mitchell [Wed, 19 Aug 2009 10:07:43 +0000 (11:07 +0100)] 
bump Safe version to 2.18

10 years agobleed and 5.10.1 - documentation fix - README.aix add info the lib gdbm is automatica...
Rainer Tammer [Wed, 19 Aug 2009 06:00:07 +0000 (08:00 +0200)] 
bleed and 5.10.1 - documentation fix - README.aix add info the lib gdbm is automatically removed + remove trailing blanks

please could you add this to bleed and maint-5.10 ?
It's only a documentation fix and a formating cleanup... this should not
break anything :-))

Thanks very much.

Bye
  Rainer

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
10 years agorelease_managers_guide: minor tweaks
David Mitchell [Wed, 19 Aug 2009 00:04:13 +0000 (01:04 +0100)] 
release_managers_guide: minor tweaks

10 years agoUpdated Module::CoreList for 5.10.1-RC2
David Mitchell [Tue, 18 Aug 2009 21:37:16 +0000 (22:37 +0100)] 
Updated Module::CoreList for 5.10.1-RC2

10 years agoCorrectly detect NDBM_File availability
H.Merijn Brand [Tue, 18 Aug 2009 17:38:51 +0000 (19:38 +0200)] 
Correctly detect NDBM_File availability