Skip to content

Commit

Permalink
Merge branch 'Perl:blead' into overload_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iamb committed Mar 5, 2022
2 parents 803adda + 61cf68d commit 052b3e3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Porting/checkAUTHORS.pl
Expand Up @@ -838,6 +838,8 @@ sub _raw_address {
bigbang7\100gmail.com ddascalescu+github\100gmail.com
blgl\100stacken.kth.se blgl\100hagernas.com
+ 2bfjdsla52kztwejndzdstsxl9athp\100gmail.com
b@os13.org brad+github\10013os.net
khw\100cpan.org khw\100karl.(none)
brian.d.foy\100gmail.com bdfoy\100cpan.org
BQW10602\100nifty.com sadahiro\100cpan.org
bulk88\100hotmail.com bulk88
Expand Down
2 changes: 1 addition & 1 deletion hv.c
Expand Up @@ -849,14 +849,14 @@ Perl_hv_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen,
HeKEY_hek(entry) = save_hek_flags(key, klen, hash, flags);
}
HeVAL(entry) = val;
in_collision = cBOOL(*oentry != NULL);

#ifdef PERL_HASH_RANDOMIZE_KEYS
/* This logic semi-randomizes the insert order in a bucket.
* Either we insert into the top, or the slot below the top,
* making it harder to see if there is a collision. We also
* reset the iterator randomizer if there is one.
*/
in_collision = *oentry != NULL;
if ( *oentry && PL_HASH_RAND_BITS_ENABLED) {
PL_hash_rand_bits++;
PL_hash_rand_bits= ROTL_UV(PL_hash_rand_bits,1);
Expand Down
9 changes: 7 additions & 2 deletions perl.c
Expand Up @@ -3360,7 +3360,6 @@ Perl_get_debug_opts(pTHX_ const char **s, bool givehelp)
" r Regular expression parsing and execution\n"
" x Syntax tree dump\n",
" u Tainting checks\n"
" H Hash dump -- usurps values()\n"
" X Scratchpad allocation\n"
" D Cleaning up\n"
" S Op slab allocation\n"
Expand All @@ -3384,7 +3383,13 @@ Perl_get_debug_opts(pTHX_ const char **s, bool givehelp)

if (isALPHA(**s)) {
/* if adding extra options, remember to update DEBUG_MASK */
static const char debopts[] = "psltocPmfrxuUHXDSTRJvCAqMBLiy";
/* Note that the ? indicates an unused slot. As the code below
* indicates the position in this list is important. You cannot
* change the order or delete a character from the list without
* impacting the definitions of all the other flags in perl.h
* However because the logic is guarded by isWORDCHAR we can
* fill in holes with non-wordchar characters instead. */
static const char debopts[] = "psltocPmfrxuU?XDSTRJvCAqMBLiy";

for (; isWORDCHAR(**s); (*s)++) {
const char * const d = strchr(debopts,**s);
Expand Down
2 changes: 1 addition & 1 deletion utf8.c
Expand Up @@ -1723,7 +1723,7 @@ Perl__utf8n_to_uvchr_msgs_helper(const U8 *s,
* avail_len gives the available number of bytes passed in, but
* only if this is less than the expected number of
* bytes, based on the code point's start byte.
* possible_problems' is 0 if there weren't any problems; otherwise a bit
* possible_problems is 0 if there weren't any problems; otherwise a bit
* is set in it for each potential problem found.
* uv contains the code point the input sequence
* represents; or if there is a problem that prevents
Expand Down

0 comments on commit 052b3e3

Please sign in to comment.