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

Export jl_get_pgcstack from libjulia #41320

Merged
merged 1 commit into from
Jun 23, 2021
Merged

Export jl_get_pgcstack from libjulia #41320

merged 1 commit into from
Jun 23, 2021

Conversation

Keno
Copy link
Member

@Keno Keno commented Jun 22, 2021

The pgcstack symbol is special because embedders are supposed to
define it themselves in localexec tls, and then access it that way.
However, there is another case of of libraries that link against
julia, but are not embedders, but rather plugins to be loaded later
(e.g. CxxWrap). These do need access to the pgcstack, but do not
have a priori access to the localexec of the embedder. Thus,
re-export the jl_get_pgcstack function that provides access
to our internal getter for the pgcstack.

The pgcstack symbol is special because embedders are supposed to
define it themselves in localexec tls, and then access it that way.
However, there is another case of of libraries that link against
julia, but are not embedders, but rather plugins to be loaded later
(e.g. CxxWrap). These do need access to the pgcstack, but do not
have a priori access to the localexec of the embedder. Thus,
re-export the `jl_get_pgcstack` function that provides access
to our internal getter for the pgcstack.
@Keno Keno requested a review from vtjnash June 22, 2021 22:11
Copy link
Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM. I think internally we don't use this function, but instead one of the more directly optimized calls?

@Keno Keno merged commit e469a1e into master Jun 23, 2021
@Keno Keno deleted the kf/pgstackexport branch June 23, 2021 18:40
@fingolfin
Copy link
Member

Can this please be backported to 1.7, see JuliaPackaging/Yggdrasil#3263 ?

johanmon pushed a commit to johanmon/julia that referenced this pull request Jul 5, 2021
The pgcstack symbol is special because embedders are supposed to
define it themselves in localexec tls, and then access it that way.
However, there is another case of of libraries that link against
julia, but are not embedders, but rather plugins to be loaded later
(e.g. CxxWrap). These do need access to the pgcstack, but do not
have a priori access to the localexec of the embedder. Thus,
re-export the `jl_get_pgcstack` function that provides access
to our internal getter for the pgcstack.
KristofferC pushed a commit that referenced this pull request Jul 5, 2021
The pgcstack symbol is special because embedders are supposed to
define it themselves in localexec tls, and then access it that way.
However, there is another case of of libraries that link against
julia, but are not embedders, but rather plugins to be loaded later
(e.g. CxxWrap). These do need access to the pgcstack, but do not
have a priori access to the localexec of the embedder. Thus,
re-export the `jl_get_pgcstack` function that provides access
to our internal getter for the pgcstack.

(cherry picked from commit e469a1e)
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.

5 participants