Skip to content

Commit

Permalink
Update to MMTK core PR #1159
Browse files Browse the repository at this point in the history
  • Loading branch information
qinsoon committed Jul 10, 2024
1 parent 638a9f5 commit 47b5587
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
8 changes: 4 additions & 4 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 @@ -28,7 +28,7 @@ log = {version = "0.4", features = ["max_level_trace", "release_max_level_off"]
# - change branch/rev
# - 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 = "6cae51c40104d84bb74598ab3eba4f9ef8173e8e" }
mmtk = { git = "https://github.com/qinsoon/mmtk-core.git", rev = "6ce0d2ca79e14b64eee321a97c5ae67227f36228" }
# Uncomment the following to build locally - if you change the path locally, do not commit the change in a PR
# mmtk = { path = "../repos/mmtk-core" }

Expand Down
11 changes: 1 addition & 10 deletions mmtk/src/object_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,18 +230,9 @@ impl ObjectModel<JikesRVM> for VMObjectModel {
object.to_raw_address()
}

#[inline(always)]
fn ref_to_address(object: ObjectReference) -> Address {
object.to_raw_address() + TIB_OFFSET
}

const OBJECT_REF_OFFSET_LOWER_BOUND: isize = OBJECT_REF_OFFSET;

#[inline(always)]
fn address_to_ref(addr: Address) -> ObjectReference {
debug_assert!(!addr.is_zero());
unsafe { ObjectReference::from_raw_address_unchecked(addr + (-TIB_OFFSET)) }
}
const IN_OBJECT_ADDRESS_OFFSET: isize = TIB_OFFSET;

fn dump_object(_object: ObjectReference) {
unimplemented!()
Expand Down

0 comments on commit 47b5587

Please sign in to comment.