Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure string-as-pointer is a mutable version
If a String is passed into an FFI function as an "out" pointer, we must ensure we use a mutable version. If the original string param is frozen, it must be duped to a non-frozen version, and if it is shared we must pre-modify it to avoid overwriting any shared buffers. This may not be the best way to handle this. My instinct was to add logic into the "strategy" that can provide a mutable version of a given parameter, but this is a smaller localized change. We will want to revisit this logic and avoid type-specific logic in the marshaller when it should live in the strategy. Fixes jruby#8365
- Loading branch information