Skip to content

Conversation

tdrz
Copy link
Collaborator

@tdrz tdrz commented Oct 7, 2025

No description provided.

@tdrz tdrz requested a review from samwillis October 7, 2025 06:23
}
}
}
resume_on_error:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

check error handling

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Seems fine: resume_on_error was only jumped to if cma_rsize < 0 which is not the case with the new data transfer method.


#if defined(__EMSCRIPTEN__)
EM_ASM( {
Module.is_worker = (typeof WorkerGlobalScope !== 'undefined') && self instanceof WorkerGlobalScope;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

is is_worker used anywhere else?

Module.is_worker = (typeof WorkerGlobalScope !== 'undefined') && self instanceof WorkerGlobalScope;
Module.FD_BUFFER_MAX = $0; Module.emscripten_copy_to = console.warn;}
, (CMA_MB * 1024 * 1024) / CMA_FD); /* ( global mem start / num fd max ) */
Module.FD_BUFFER_MAX = $0; Module.emscripten_copy_to = console.warn;} // tdrz: what is FD_BUFFER_MAX?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

emscripten_copy_to used anywhere?

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