Skip to content

Commit 427eab6

Browse files
authored
Use buffer size exported from MMTk core (#298)
1 parent 1abbc89 commit 427eab6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mmtk/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "mmtk_openjdk"
33
version = "0.30.0"
44
authors = [" <>"]
5-
rust-version = "1.73.0"
5+
rust-version = "1.74.1"
66
build = "build.rs"
77
edition = "2021"
88

@@ -35,12 +35,12 @@ probe = "0.5"
3535
# - change branch
3636
# - change repo name
3737
# But other changes including adding/removing whitespaces in commented lines may break the CI.
38-
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "ec745353a8de72b645613e0fef3ab7f5f1ad9bd1" }
38+
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "f67a0d2fc0bf3d18d34348949dff969d4d202bbc" }
3939
# Uncomment the following to build locally
4040
# mmtk = { path = "../repos/mmtk-core" }
4141

4242
[build-dependencies]
43-
built = { version = "0.7.1", features = ["git2"] }
43+
built = { version = "0.7.7", features = ["git2"] }
4444

4545
[features]
4646
default = []

mmtk/src/scanning.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use mmtk::MutatorContext;
1212

1313
pub struct VMScanning {}
1414

15-
pub(crate) const WORK_PACKET_CAPACITY: usize = 4096;
15+
pub(crate) const WORK_PACKET_CAPACITY: usize = mmtk::scheduler::EDGES_WORK_BUFFER_SIZE;
1616

1717
extern "C" fn report_slots_and_renew_buffer<S: Slot, F: RootsWorkFactory<S>>(
1818
ptr: *mut Address,

0 commit comments

Comments
 (0)