Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR improves perl 5.8 support.
(A) 34d26b1
Currently Xslate cannot be built on perl 5.8 with Devel::PPPort 3.33+.
This commit will fix this.
See also Dual-Life/Devel-PPPort#42
(B) f9258de
Currently t/900_bugs/030_issue71.t fails on perl 5.8.
In recent perl, SvUPGRADE(av, SVt_PVAV) makes the av AvREAL_only,
so that av_fill() frees deleted elements.
https://github.com/Perl/perl5/blob/v5.26.1/sv.c#L1357
https://github.com/Perl/perl5/blob/v5.26.1/av.c#L860-L865
On the other hand, in perl 5.8, SvUPGRADE(av, SVt_PVAV) does NOT make the av AvREAL_only,
so that av_fill() does NOT free deleted elements, and it implies memory leaks.
https://github.com/Perl/perl5/blob/perl-5.8.5/sv.c#L1462-L1476
https://github.com/Perl/perl5/blob/perl-5.8.5/av.c#L767-L772
The commit f9258de makes
newframe
AvREAL_only (= AvREIFY_off + AvREAL_on) explicitly.(C) 2e5392a
Use version->declare syntax; otherwise we'll get: