Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper naming for the new helper functions; more newSVpv() references removed. #5

Closed
wants to merge 1 commit into from
Closed

Proper naming for the new helper functions; more newSVpv() references removed. #5

wants to merge 1 commit into from

Conversation

creaktive
Copy link
Contributor

Another take on sending patches to https://rt.perl.org/SelfService/Display.html?id=122405, since my git-fu is weak.

… removed.

Perl_sv_peek() now operates internally without allocating new SVs. But then,
a single SV is allocated for the result so we can return SvPV_nolen().
Does that configure a memory leak? Perl_sv_peek() already works that way.
@rjbs
Copy link
Member

rjbs commented Feb 26, 2015

(this code will remain available if I close the PR, so I am closing it; we do not track issues with GitHub)

@rjbs rjbs closed this Feb 26, 2015
p5p pushed a commit that referenced this pull request Feb 19, 2016
This has large memory savings, test prog,
perl -MTest::More -e"system 'pause'"
before 2196KB Private Bytes Win 7 32 bit to after 2092KB.

-On a CHEK the refcount is a U32 for memory savings on 64 bit CPUs while
 SHEKs are Size_t for refcount because of HE struct, on 32 bit Size_t and
 U32 happen to be the same thing, if there is future integration the
 refcount members will have to be the same type, then duping a SHEK or
 a CHEK is the same code, except that HVhek_COMPILING controls whether to
 aquire OP_REFCNT_LOCK before touching the ref count, in the future with
 atomic operations, the refcount can be manipulated with atomic operations
 regardless if it is a SHEK or CHEK since OP_REFCNT_LOCK lines were removed
-TODO figure out how to do static const CHEKs, hash member must be 0
 since its process specific randomized (rurban's B stores HEKs in RW static
 memory and fixes up the hash #s at runtime), add test and branch
 so that refcount isn't read and written or passed to PerlMemShared_free
 if static flag is on inidicating static const CHEK
-TODO Perl_newGP uses CHEKs not CopFILE, no memcpy and add _< that way
-TODO optimize the former alloca to smallbuf or Safefree or savestack
 newx free
p5p pushed a commit that referenced this pull request Dec 12, 2017
  [DELTA]

1.58 2017-11-15 rurban
----
  * Drop 5.005 support
  * Switch from DynaLoader to XSLoader [atoomic #5]
  * Replace use vars by our. [atoomic #5]
  * Lazy load Carp only when required. [atoomic #5]
  * Minor test improvements
  * Fix v5.8 cast warnings
atoomic added a commit that referenced this pull request Jun 29, 2020
Fixes #5

probably want to split PERL_VERSION_DECIMAL and co to their ownn .h file
atoomic added a commit that referenced this pull request Jul 1, 2020
Fixes #5

probably want to split PERL_VERSION_DECIMAL and co to their ownn .h file
demerphq added a commit that referenced this pull request Sep 9, 2022
For long define statements put the replacement part on their own line.
Also wrap comments on long lines.
demerphq added a commit that referenced this pull request Sep 9, 2022
For long define statements put the replacement part on their own line.
Also wrap comments on long lines.
demerphq added a commit that referenced this pull request Sep 12, 2022
For long define statements put the replacement part on their own line.
Also wrap comments on long lines.
khwilliamson pushed a commit to khwilliamson/perl5 that referenced this pull request Oct 18, 2022
source::encoding, to declare the encoding of source
demerphq added a commit that referenced this pull request Oct 25, 2022
For long define statements put the replacement part on their own line.
Also wrap comments on long lines.
demerphq added a commit that referenced this pull request Nov 5, 2022
For long define statements put the replacement part on their own line.
Also wrap comments on long lines.
demerphq added a commit that referenced this pull request Nov 5, 2022
For long define statements put the replacement part on their own line.
Also wrap comments on long lines.
demerphq added a commit that referenced this pull request Nov 5, 2022
For long define statements put the replacement part on their own line.
Also wrap comments on long lines.
demerphq added a commit that referenced this pull request Nov 5, 2022
For long define statements put the replacement part on their own line.
Also wrap comments on long lines.
demerphq added a commit that referenced this pull request Dec 31, 2022
For long define statements put the replacement part on their own line.
Also wrap comments on long lines.
khwilliamson pushed a commit to khwilliamson/perl5 that referenced this pull request Jan 30, 2023
demerphq added a commit that referenced this pull request Feb 8, 2023
For long define statements put the replacement part on their own line.
Also wrap comments on long lines.
demerphq added a commit that referenced this pull request Feb 19, 2023
For long define statements put the replacement part on their own line.
Also wrap comments on long lines.
demerphq added a commit that referenced this pull request Feb 20, 2023
For long define statements put the replacement part on their own line.
Also wrap comments on long lines.
mauke added a commit to mauke/perl5 that referenced this pull request Sep 1, 2024
- change $2 to $1 in the replacement part; $2 no longer exists after
  commit febfc89
- only search for "gh" or "github" at word boundaries; don't replace
  "gh" in e.g. "high Perl#5"
- change `BEGIN{undef $/};` to the `-g` command-line option
- remove useless /m flag on the regex (we're not using `^` or `$`)
mauke added a commit that referenced this pull request Sep 1, 2024
- change $2 to $1 in the replacement part; $2 no longer exists after
  commit febfc89
- only search for "gh" or "github" at word boundaries; don't replace
  "gh" in e.g. "high #5"
- change `BEGIN{undef $/};` to the `-g` command-line option
- remove useless /m flag on the regex (we're not using `^` or `$`)
rawleyfowler pushed a commit to rawleyfowler/perl5 that referenced this pull request Sep 2, 2024
- change $2 to $1 in the replacement part; $2 no longer exists after
  commit febfc89
- only search for "gh" or "github" at word boundaries; don't replace
  "gh" in e.g. "high Perl#5"
- change `BEGIN{undef $/};` to the `-g` command-line option
- remove useless /m flag on the regex (we're not using `^` or `$`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants