From 4c108b70107d9de518df8290959d07cf362f3d61 Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Mon, 20 Sep 2021 20:11:49 -0500 Subject: [PATCH] Fix bug where symbol lookup used the wrong kind of method --- src/coffi/ffi.clj | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/coffi/ffi.clj b/src/coffi/ffi.clj index e5a4091..50c25e0 100644 --- a/src/coffi/ffi.clj +++ b/src/coffi/ffi.clj @@ -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."