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_debug_method_invalidation. #35729

Merged
merged 2 commits into from
May 4, 2020

Conversation

maleadt
Copy link
Member

@maleadt maleadt commented May 4, 2020

Seems useful, ref #35714

julia> f() = 1
f (generic function with 1 method)

julia> f()
1

julia> f() = 2
f (generic function with 1 method)

julia> f()
2

julia> unsafe_store!(cglobal(:jl_debug_method_invalidation, Cint), 1)
Ptr{Int32} @0x00007ff48d312260

julia> f() = 3
-- f()
f (generic function with 1 method)

julia> f()
3

@maleadt maleadt requested a review from vtjnash May 4, 2020 11:15
@timholy
Copy link
Member

timholy commented May 4, 2020

SnoopCompile support will land shortly after this merges, see timholy/SnoopCompile.jl#77.

@vtjnash vtjnash merged commit 5ec0608 into master May 4, 2020
@vtjnash vtjnash deleted the tb/export_debug_method_invalidation branch May 4, 2020 17:50
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.

3 participants