Skip to content

Commit f973147

Browse files
committed
Revert "Use Base method to extract method table"
This reverts commit 0ef1569.
1 parent 0ef1569 commit f973147

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CodeTracking.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ const expressions_callback = Ref{Any}(nothing)
6161
const juliabase = joinpath("julia", "base")
6262
const juliastdlib = joinpath("julia", "stdlib", "v$(VERSION.major).$(VERSION.minor)")
6363

64-
MethodInfoKey(method::Method) = MethodInfoKey(Base.get_methodtable(method), method.sig)
64+
method_table(method::Method) = isdefined(method, :external_mt) ? method.external_mt::MethodTable : nothing
65+
MethodInfoKey(method::Method) = MethodInfoKey(method_table(method), method.sig)
6566

6667
### Public API
6768

0 commit comments

Comments
 (0)