Add ExternalPageResource and allow discontiguous VM space#864
Add ExternalPageResource and allow discontiguous VM space#864qinsoon merged 13 commits intommtk:masterfrom
Conversation
|
Currently we cannot run with MSRV 1.61 at the moment. We have a dependency chain |
|
From rust-cli/env_logger#273, the options for us are:
I would suggest 2. It does not look like cargo/Rust will improve on this any time soon, and 2 does no harm. |
|
We can also play our old trick of locking a dependency to a specific version until the problem is solved. We once did this for diff --git a/Cargo.toml b/Cargo.toml
index db4da419d..6f07eb851 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -28,6 +28,7 @@ delegate = "0.9.0"
downcast-rs = "1.1.1"
enum-map = "2.4.2"
env_logger = "0.10.0"
+is-terminal = "=0.4.7" # latest version requires MSRV 1.63
itertools = "0.10.5"
jemalloc-sys = { version = "0.5.3", features = ["disable_initial_exec_tls"], optional = true }
lazy_static = "1.1" |
8e06b28 to
7d19f58
Compare
7d19f58 to
7fc052e
Compare
Co-authored-by: Kunal Sareen <[email protected]>
|
binding-refs |
|
This PR is ready for review again. @wks |
We once used `ImmortalSpace` for VM space. #864 introduced a separate policy for `VMSpace`, and these code in `ImmortalSpace` became dead code since then. This PR removes the dead code. --------- Co-authored-by: Kunal Sareen <[email protected]>
This PR changes
VMSpaceto multiple discontiguous regions as VM space. This PR is used in mmtk/mmtk-julia#71 to support system and package images.ExternalPageResourceto manage the discontiguous regions.VMSpacewithExternalPageResource.VMSpaceno longer usesImmortalSpace.lazy_init_vm_spacetoset_vm_space, as we allow setting vm space multiple times with non overlapping regions.