Skip to content

Commit

Permalink
Fix write barrier parameter type (#273)
Browse files Browse the repository at this point in the history
Upstream PR: mmtk/mmtk-core#1130

---------

Co-authored-by: mmtkgc-bot <[email protected]>
  • Loading branch information
wks and mmtkgc-bot authored Apr 30, 2024
1 parent 3d98c8b commit 9024617
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions mmtk/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mmtk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ memoffset = "0.9.0"
# - change branch
# - change repo name
# But other changes including adding/removing whitespaces in commented lines may break the CI.
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "a02803b4104519ff2289234101a2dd8ceedd1bc7" }
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "fea59e4f5cc6176093da1d8efa7d7b3b4b8d0fa7" }
# Uncomment the following to build locally
# mmtk = { path = "../repos/mmtk-core" }

Expand Down
12 changes: 6 additions & 6 deletions mmtk/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,12 +401,12 @@ pub extern "C" fn mmtk_object_reference_write_pre(
mutator: *mut libc::c_void,
src: ObjectReference,
slot: Address,
target: ObjectReference,
target: NullableObjectReference,
) {
with_mutator!(|mutator| {
mutator
.barrier()
.object_reference_write_pre(src, slot.into(), target);
.object_reference_write_pre(src, slot.into(), target.into());
})
}

Expand All @@ -416,12 +416,12 @@ pub extern "C" fn mmtk_object_reference_write_post(
mutator: *mut libc::c_void,
src: ObjectReference,
slot: Address,
target: ObjectReference,
target: NullableObjectReference,
) {
with_mutator!(|mutator| {
mutator
.barrier()
.object_reference_write_post(src, slot.into(), target);
.object_reference_write_post(src, slot.into(), target.into());
})
}

Expand All @@ -431,12 +431,12 @@ pub extern "C" fn mmtk_object_reference_write_slow(
mutator: *mut libc::c_void,
src: ObjectReference,
slot: Address,
target: ObjectReference,
target: NullableObjectReference,
) {
with_mutator!(|mutator| {
mutator
.barrier()
.object_reference_write_slow(src, slot.into(), target);
.object_reference_write_slow(src, slot.into(), target.into());
})
}

Expand Down

0 comments on commit 9024617

Please sign in to comment.