You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parameters passed to Invoke are pointers to internal structures which are then translated and recreated by the runtime. Since AccountInfo is Repr(C) this translation is not stable. All types passed into and out of invoke must be safe.
The text was updated successfully, but these errors were encountered:
Problem
When calling
invoke
the program passesAccountInfo
structures to the runtime. AccountInfo is not-FFI safe and is not ABI stable.Some context: #14523
Proposed Solution
All types going in and out of the program should be FFI-safe and ABI stable. In short, they should use
Repr(C)
representation.Invoke
are pointers to internal structures which are then translated and recreated by the runtime. SinceAccountInfo
isRepr(C)
this translation is not stable. All types passed into and out ofinvoke
must be safe.The text was updated successfully, but these errors were encountered: