diff --git a/src/main/kotlin/com/fasterxml/jackson/module/kotlin/ValueCreator.kt b/src/main/kotlin/com/fasterxml/jackson/module/kotlin/ValueCreator.kt index cbbddd6c4..225135705 100644 --- a/src/main/kotlin/com/fasterxml/jackson/module/kotlin/ValueCreator.kt +++ b/src/main/kotlin/com/fasterxml/jackson/module/kotlin/ValueCreator.kt @@ -24,7 +24,10 @@ internal sealed class ValueCreator { /** * ValueParameters of the KFunction to be called. */ - val valueParameters: List by lazy { callable.valueParameters } + // If this result is cached, it will coexist with the SoftReference managed value in kotlin-reflect, + // and there is a risk of doubling the memory consumption, so it should not be cached. + // @see #584 + val valueParameters: List get() = callable.valueParameters /** * Checking process to see if access from context is possible.