Fix bug with primitive-serializing arguments to downcalls not compiling
This commit is contained in:
parent
b98fdc05ea
commit
673a653200
2 changed files with 5 additions and 3 deletions
|
|
@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This change
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Fixed
|
### Fixed
|
||||||
|
- Primitive-serializing types fail to compile as arguments to downcall handles
|
||||||
- Primitive-serializing types fail to load as arguments to upcall functions
|
- Primitive-serializing types fail to load as arguments to upcall functions
|
||||||
- Void return types on upcalls crash the JVM
|
- Void return types on upcalls crash the JVM
|
||||||
- Invalid implementation of serialize-into for primitive types
|
- Invalid implementation of serialize-into for primitive types
|
||||||
|
|
|
||||||
|
|
@ -108,9 +108,10 @@
|
||||||
(defn- insn-layout
|
(defn- insn-layout
|
||||||
"Gets the type keyword or class for referring to the type in bytecode."
|
"Gets the type keyword or class for referring to the type in bytecode."
|
||||||
[type]
|
[type]
|
||||||
(if (some-> (mem/primitive-type type) (not= ::mem/pointer))
|
(when-some [prim (mem/primitive-type type)]
|
||||||
(keyword (name type))
|
(if (not= prim ::mem/pointer)
|
||||||
(mem/java-layout type)))
|
(keyword (name prim))
|
||||||
|
(mem/java-layout type))))
|
||||||
|
|
||||||
(def ^:private unbox-fn-for-type
|
(def ^:private unbox-fn-for-type
|
||||||
"Map from type name to the name of its unboxing function."
|
"Map from type name to the name of its unboxing function."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue