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?

Copy link
Collaborator

@samwillis samwillis left a comment

Choose a reason for hiding this comment

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

:shipit:

@tdrz tdrz merged commit 1a0bdab into REL_17_5_WASM-pglite-builder Oct 14, 2025
@tdrz tdrz deleted the tdrz/ccoderefactoring branch October 14, 2025 10:18
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.

2 participants