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
In my PR #54453 I introduced reference counter for objects InFlight across the JS/managed boundary.
The method extract_mono_obj increases the inflight refcount and it is decreased on managed side for return values.
But we do not decrease refcount for JSObjects passed as parameters to callbacks.
Example scenario is OnMessage callback of WebSocket. It passes Event object, which is marshaled as JSObject.
Since the callback delegate is pointing directly to the user code, we currently don't have platform place which could decrease the inflight ref count.
The text was updated successfully, but these errors were encountered:
Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.
Issue Details
In my PR #54453 I introduced reference counter for objects InFlight across the JS/managed boundary.
The method extract_mono_obj increases the inflight refcount and it is decreased on managed side for return values.
But we do not decrease refcount for JSObjects passed as parameters to callbacks.
Example scenario is OnMessage callback of WebSocket. It passes Event object, which is marshaled as JSObject.
Since the callback delegate is pointing directly to the user code, we currently don't have platform place which could decrease the inflight ref count.
In my PR #54453 I introduced reference counter for objects InFlight across the JS/managed boundary.
The method
extract_mono_obj
increases the inflight refcount and it is decreased on managed side for return values.But we do not decrease refcount for JSObjects passed as parameters to callbacks.
Example scenario is OnMessage callback of WebSocket. It passes Event object, which is marshaled as JSObject.
Since the callback delegate is pointing directly to the user code, we currently don't have platform place which could decrease the inflight ref count.
The text was updated successfully, but these errors were encountered: