Skip to content

Conversation

@xenu
Copy link
Member

@xenu xenu commented Apr 21, 2022

This allows us to enforce API boundaries and potentially enables
compiler optimisations.

We've been always hiding non-public symbols on Windows. This commit
brings that to the other platforms.

Of course, we're in freeze, so this PR shouldn't be merged until 5.36.0 is released.

@xenu xenu force-pushed the xenu/hidden branch 2 times, most recently from 6a862b9 to 7b2b768 Compare June 18, 2022 04:44
xenu added 2 commits June 18, 2022 07:26
Both Perl_peep and Perl_pp_uc are private. Check for Perl_croak instead;
it's a part of the public API.
This allows us to enforce API boundaries and potentially enables
compiler optimisations.

We've been always hiding non-public symbols on Windows. This commit
brings that to the other platforms.
@xenu xenu removed the hasConflicts label Jun 18, 2022
@xenu xenu merged commit 0351a62 into Perl:blead Jun 18, 2022
@xenu xenu deleted the xenu/hidden branch June 18, 2022 06:51
freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this pull request May 3, 2025
Taken from Perl/perl5#19655:

> hide private functions with __attribute__((visibility("hidden")))
> This allows us to enforce API boundaries and potentially enables
> compiler optimisations.
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