Fix bug where symbol lookup used the wrong kind of method

This commit is contained in:
Joshua Suskalo 2021-09-20 20:11:49 -05:00
parent 331e72079f
commit 4c108b7010

View file

@ -24,7 +24,8 @@
MemoryLayouts
MemorySegment
ResourceScope
SegmentAllocator)))
SegmentAllocator
SymbolLookup)))
(defn stack-scope
"Constructs a new scope for use only in this thread.
@ -590,7 +591,7 @@
[sym]
(let [sym (name sym)]
(or (.. (CLinker/systemLookup) (lookup sym) (orElse nil))
(.. (CLinker/systemLookup) (loaderLookup) (lookup sym) (orElse nil)))))
(.. (SymbolLookup/loaderLookup) (lookup sym) (orElse nil)))))
(defn- method-type
"Gets the [[MethodType]] for a set of `args` and `ret` types."