Skip to content

Commit 5d6b0fa

Browse files
committed
Replace uninitialize_collection with prepare/after fork.
1 parent 411208a commit 5d6b0fa

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Diff for: mmtk/Cargo.lock

-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: mmtk/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ probe = "0.5"
3636
features = ["is_mmtk_object", "object_pinning"]
3737

3838
# Uncomment the following lines to use mmtk-core from the official repository.
39-
git = "https://github.com/wks/mmtk-core.git"
40-
rev = "7cb0b2c12be341c084e03f2cd943fad8ac088f83"
39+
#git = "https://github.com/wks/mmtk-core.git"
40+
#rev = "7cb0b2c12be341c084e03f2cd943fad8ac088f83"
4141

4242
# Uncomment the following line to use mmtk-core from a local repository.
43-
#path = "../../mmtk-core"
43+
path = "../../mmtk-core"
4444

4545
[features]
4646
default = []

Diff for: mmtk/src/api.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,13 @@ pub extern "C" fn mmtk_initialize_collection(tls: VMThread) {
155155
}
156156

157157
#[no_mangle]
158-
pub extern "C" fn mmtk_uninitialize_collection() {
159-
memory_manager::uninitialize_collection(mmtk())
158+
pub extern "C" fn mmtk_prepare_to_fork() {
159+
mmtk().prepare_to_fork();
160+
}
161+
162+
#[no_mangle]
163+
pub extern "C" fn mmtk_after_fork(tls: VMThread) {
164+
mmtk().after_fork(tls);
160165
}
161166

162167
#[no_mangle]

0 commit comments

Comments
 (0)