Skip to content

proxy: fix closure cycles in evm#4322

Open
chirag-parmar wants to merge 1 commit into
masterfrom
cycles-fix
Open

proxy: fix closure cycles in evm#4322
chirag-parmar wants to merge 1 commit into
masterfrom
cycles-fix

Conversation

@chirag-parmar

Copy link
Copy Markdown
Contributor

No description provided.

continuation*: proc(): EvmResultVoid {.gcsafe, raises: [].}
parent* {.cursor.}: Computation # non-owning back pointer
child*: Computation # owning front pointer
continuation*: proc(c: Computation): EvmResultVoid {.gcsafe, raises: [].}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might as well add nimcall pragma to the pragma list to ensure there is no hidden closure.

see #2282

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two other parameters are captured memPos and memLen in execSubCall. Can try to refactor and try to fit them in without requiring closures, but its better if we pair this refactor with the overall refactor of evm.

@chirag-parmar chirag-parmar marked this pull request as ready for review June 12, 2026 13:32
Comment thread config.nims
extend "gcc.cpp.options.linker", " -flto=auto -Wno-stringop-overflow -Wno-stringop-overread -finline-limit=100000"

if defined(macosx):
if defined(macosx) and not defined(emscripten):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do non-macos LTO settings work with enscripten? It's a little surprising to juxtapose these two conditions, since emscripten works across other platforms too.

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.

3 participants