Skip to content

Commit edade55

Browse files
authored
Fix for renamed API function (#56)
is_mapped_object -> is_in_mmtk_spaces
1 parent 18aaa92 commit edade55

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

mmtk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ log = "*"
2626
# - change branch
2727
# - change repo name
2828
# But other changes including adding/removing whitespaces in commented lines may break the CI.
29-
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "dbd152b29ff54c3f028318e73ac182d681deda9a" }
29+
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "cd6d8984c10c294c991dcd5f154ce41073c06ab9" }
3030
# Uncomment the following and fix the path to mmtk-core to build locally
3131
# mmtk = { path = "../repos/mmtk-core" }
3232

mmtk/src/api.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,17 @@ pub extern "C" fn scan_region(mmtk: &mut MMTK<V8>) {
118118

119119
#[no_mangle]
120120
pub extern "C" fn is_live_object(object: ObjectReference) -> bool {
121-
object.is_live()
121+
memory_manager::is_live_object(object)
122122
}
123123

124124
#[no_mangle]
125-
pub extern "C" fn is_mapped_object(object: ObjectReference) -> bool {
126-
object.is_mapped()
125+
pub extern "C" fn is_in_mmtk_spaces(object: ObjectReference) -> bool {
126+
memory_manager::is_in_mmtk_spaces(object)
127127
}
128128

129129
#[no_mangle]
130130
pub extern "C" fn is_mapped_address(address: Address) -> bool {
131-
address.is_mapped()
131+
memory_manager::is_mapped_address(address)
132132
}
133133

134134
#[no_mangle]

v8/third_party/heap/mmtk/mmtk.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ extern void post_alloc(MMTk_Mutator mutator, void* refer,
3535
int bytes, int allocator);
3636

3737
extern bool is_live_object(void* ref);
38-
extern bool is_mapped_object(void* ref);
38+
extern bool is_in_mmtk_spaces(void* ref);
3939
extern bool is_mapped_address(void* addr);
4040
extern void modify_check(void *mmtk, void* ref);
4141
extern bool is_in_read_only_space(void* addr);
@@ -107,4 +107,4 @@ extern void harness_end(void* ref);
107107
}
108108
#endif
109109

110-
#endif // MMTK_H
110+
#endif // MMTK_H

0 commit comments

Comments
 (0)