-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python memory snapshot: add magic number and version #1894
Conversation
da5b4ce
to
05181c5
Compare
dd18e00
to
5d47af1
Compare
@@ -186,9 +186,13 @@ function loadDynlib(Module, path, wasmModuleData) { | |||
* there. | |||
*/ | |||
function preloadDynamicLibs(Module) { | |||
let SO_FILES_TO_LOAD = SITE_PACKAGES_SO_FILES; | |||
if (DSO_METADATA?.settings?.baselineSnapshot) { | |||
SO_FILES_TO_LOAD = [[ '_lzma.so' ]]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this definitely safe? Should we maybe not preload anything just to be extra cautious?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gets imported by something in SNAPSHOT_IMPORTS
I'm not really sure why. But because we use it in the snapshot, we'll crash without it.
0e7cb97
to
bbde92e
Compare
bbde92e
to
81b39d2
Compare
No description provided.