Skip to content

feat: Codegen for RPCs. rpc and rpc_id/rpcId now strongly typed.#205

Merged
Benjamin-Dobell merged 1 commit intogodotjs:mainfrom
Benjamin-Dobell:feat/rpc-codegen
Apr 17, 2026
Merged

feat: Codegen for RPCs. rpc and rpc_id/rpcId now strongly typed.#205
Benjamin-Dobell merged 1 commit intogodotjs:mainfrom
Benjamin-Dobell:feat/rpc-codegen

Conversation

@Benjamin-Dobell
Copy link
Copy Markdown
Member

Codegen now generates types for RPC methods (methods annotated with @bind.rpc) on Nodes.

Also addressed some GC related crashes. Basically, V8 bans certain operations in the "first pass" of a GC finalizer callback. The first pass is supposed to be FAST. We have to explicitly request a second pass, which is where we can do more work (our own callbacks).

Additionally, during isolate shutdown we should avoid making explicit GC calls and not make second pass requests.

@Benjamin-Dobell Benjamin-Dobell force-pushed the feat/rpc-codegen branch 4 times, most recently from f62dfd5 to 12ac763 Compare April 16, 2026 19:19
Also addressed some GC related crashes. Basically, V8 bans certain
operations in the "first pass" of a GC finalizer callback. The
first pass is supposed to be FAST. We have to explicitly request a
second pass, which is where we can do more work (our own callbacks).

Additionally, during isolate shutdown we should avoid making
explicit GC calls and not make second pass requests.
@Benjamin-Dobell Benjamin-Dobell merged commit ffbade0 into godotjs:main Apr 17, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant