-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(xsnap): take snapshot without impact on GC #3607
Moddable reworked the chunk allocator to always use a single memory block for chunk storage. The change is implemented in `xsnapPlatform.c`. The implementation uses `mmap`/`mprotect` (`VirtualAlloc` on Windows) to reserve and to commit memory pages. To get this fix, we add an `xsnap-native` submodule that replaces `xsnap.c` and friends. The submodule includes a few tweaks: https://github.com/agoric-labs/xsnap-pub/tree/endo-submodule fixes #3577 fixes #3139 , bringing us back to stock XS. fixes #2469 - Moddable reviewed the code well enough to substantially re-work it.
- Loading branch information
Showing
24 changed files
with
347 additions
and
2,449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "packages/xsnap/moddable"] | ||
path = packages/xsnap/moddable | ||
url = https://github.com/agoric-labs/moddable.git | ||
[submodule "packages/xsnap/xsnap-native"] | ||
path = packages/xsnap/xsnap-native | ||
url = https://github.com/agoric-labs/xsnap-pub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
See also [xsnap documentation][1] including: | ||
|
||
- [XS Metering][2] | ||
- [XS Snapshots][3] | ||
|
||
|
||
[1]: https://github.com/agoric-labs/xsnap-pub/blob/endo-submodule/xsnap/documentation/ | ||
[2]: https://github.com/agoric-labs/xsnap-pub/blob/endo-submodule/xsnap/documentation/XS%20Metering.md | ||
[3]: https://github.com/agoric-labs/xsnap-pub/blob/endo-submodule/xsnap/documentation/XS%20Snapshots.md |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.