Skip to content

[browser] Consider DangerousAddRef for JSObject #107974

Open
@pavelsavara

Description

@pavelsavara

When we are marshaling JSObject to JS, should we DangerousAddRef on it for duration of the call ?
Our GC is scanning the stack so in most cases, that would be enough.

But there are few scenarios for which I'm not sure

  • marshaling array where JSObject is item in the array
  • multi-threaded stack frame which is passed between thread is allocated on a heap
  • NAOT-LLVM doesn't have conservative GC

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions