-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
fix: handle mmap offset #10095
fix: handle mmap offset #10095
Conversation
Thank you for submitting a pull request! If this is your first PR, make sure to add yourself to AUTHORS. |
4e3f05a
to
aaec9db
Compare
add http transport for emscripten add example for git commit fix example for git add add synchronous http worker for nodejs add example for interacting with examples from emscripten depends on mmap offset fix in emscripten: emscripten-core/emscripten#10095
add http transport for emscripten add example for git commit fix example for git add add synchronous http worker for nodejs add web http support using sync XmlHttpRequest add nodejs and webworker examples for interacting with libgit2.js depends on mmap offset fix in emscripten: emscripten-core/emscripten#10095
add http transport for emscripten add example for git commit fix example for git add add synchronous http worker for nodejs add web http support using sync XmlHttpRequest add nodejs and webworker examples for interacting with libgit2.js depends on mmap offset fix in emscripten: emscripten-core/emscripten#10095
add http transport for emscripten add example for git commit fix example for git add add synchronous http worker for nodejs add web http support using sync XmlHttpRequest add nodejs and webworker examples for interacting with libgit2.js depends on mmap offset fix in emscripten: emscripten-core/emscripten#10095
aaec9db
to
15f447e
Compare
add http transport for emscripten add example for git commit fix example for git add add synchronous http worker for nodejs add web http support using sync XmlHttpRequest add nodejs and webworker examples for interacting with libgit2.js depends on mmap offset fix in emscripten: emscripten-core/emscripten#10095
15f447e
to
e41d357
Compare
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.
Thanks @petersalomonsen !
This looks right to me, but it's been a while since I read this code, so I might be missing something.
Perhaps you could add a test for this? Looks like https://github.com/emscripten-core/emscripten/blob/incoming/tests/fs/test_mmap.c has some msync usage (runnable with ./tests/runner.py test_fs_mmap
), perhaps that can be extended a little?
e41d357
to
40674f4
Compare
Thanks for feedback @kripken I've extended |
add and use offset parameter in doMsync add test case for shared mmap with offset fixes emscripten-core#10094
40674f4
to
9e4eb22
Compare
add http transport for emscripten add example for git commit fix example for git add add synchronous http worker for nodejs add web http support using sync XmlHttpRequest add nodejs and webworker examples for interacting with libgit2.js depends on mmap offset fix in emscripten: emscripten-core/emscripten#10095
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.
Great, thanks @petersalomonsen !
Add and use offset parameter in doMsync fixes emscripten-core#10094
fixes #10094