Skip to content

Commit cb77425

Browse files
authored
Fix for renamed API function (#142)
is_mapped_object -> is_in_mmtk_spaces
1 parent 62b8904 commit cb77425

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

mmtk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ lazy_static = "1.1"
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 = "2d8dedcb42acfb6d70f20add143a8139581bec7c" }
29+
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "cd6d8984c10c294c991dcd5f154ce41073c06ab9" }
3030
# Uncomment the following to build locally
3131
# mmtk = { path = "../repos/mmtk-core" }
3232

mmtk/src/api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ pub extern "C" fn handle_user_collection_request(tls: VMMutatorThread) {
163163
}
164164

165165
#[no_mangle]
166-
pub extern "C" fn is_mapped_object(object: ObjectReference) -> bool {
167-
memory_manager::is_mapped_object(object)
166+
pub extern "C" fn is_in_mmtk_spaces(object: ObjectReference) -> bool {
167+
memory_manager::is_in_mmtk_spaces(object)
168168
}
169169

170170
#[no_mangle]

openjdk/mmtk.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ extern void record_modified_node(MMTk_Mutator mutator, void* obj);
4747

4848
extern void release_buffer(void** buffer, size_t len, size_t cap);
4949

50-
extern bool is_mapped_object(void* ref);
50+
extern bool is_in_mmtk_spaces(void* ref);
5151
extern bool is_mapped_address(void* addr);
5252
extern void modify_check(void* ref);
5353

openjdk/mmtkHeap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ bool MMTkHeap::is_in(const void* p) const {
186186
//return cp >= committed_low_addr() && cp < committed_high_addr();
187187

188188
//guarantee(false, "is in not supported");
189-
return is_mapped_object(const_cast<void *>(p));
189+
return is_in_mmtk_spaces(const_cast<void *>(p));
190190
}
191191

192192
bool MMTkHeap::is_in_reserved(const void* p) const {

0 commit comments

Comments
 (0)