Skip to content

Commit 60a8357

Browse files
qinsoonmmtkgc-bot
andauthored
Update to MMTk core PR #949 (#240)
Updates to mmtk/mmtk-core#949. --------- Co-authored-by: mmtkgc-bot <[email protected]>
1 parent 2a6be16 commit 60a8357

File tree

6 files changed

+18
-29
lines changed

6 files changed

+18
-29
lines changed

mmtk/Cargo.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mmtk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ memoffset = "0.9.0"
3232
# - change branch
3333
# - change repo name
3434
# But other changes including adding/removing whitespaces in commented lines may break the CI.
35-
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "06a2e5d9773c9f7a32a6afc1add9cef311432dbc" }
35+
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "57af17fbfd94ff0df2cd3b1e504abe299ce4f0ab" }
3636
# Uncomment the following to build locally
3737
# mmtk = { path = "../repos/mmtk-core" }
3838

mmtk/src/active_plan.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use crate::UPCALLS;
44
use mmtk::util::opaque_pointer::*;
55
use mmtk::vm::ActivePlan;
66
use mmtk::Mutator;
7-
use mmtk::Plan;
87
use std::collections::VecDeque;
98
use std::marker::PhantomData;
109

@@ -39,10 +38,6 @@ impl<'a, const COMPRESSED: bool> Iterator for OpenJDKMutatorIterator<'a, COMPRES
3938
pub struct VMActivePlan {}
4039

4140
impl<const COMPRESSED: bool> ActivePlan<OpenJDK<COMPRESSED>> for VMActivePlan {
42-
fn global() -> &'static dyn Plan<VM = OpenJDK<COMPRESSED>> {
43-
crate::singleton::<COMPRESSED>().get_plan()
44-
}
45-
4641
fn is_mutator(tls: VMThread) -> bool {
4742
unsafe { ((*UPCALLS).is_mutator)(tls) }
4843
}

mmtk/src/api.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,6 @@ pub extern "C" fn is_mapped_address(addr: Address) -> bool {
299299
memory_manager::is_mapped_address(addr)
300300
}
301301

302-
#[no_mangle]
303-
pub extern "C" fn modify_check(object: ObjectReference) {
304-
with_singleton!(|singleton| memory_manager::modify_check(singleton, object))
305-
}
306-
307302
#[no_mangle]
308303
pub extern "C" fn add_weak_candidate(reff: ObjectReference) {
309304
with_singleton!(|singleton| memory_manager::add_weak_candidate(singleton, reff))

openjdk/mmtk.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ extern void release_buffer(void** buffer, size_t len, size_t cap);
6868

6969
extern bool is_in_mmtk_spaces(void* ref);
7070
extern bool is_mapped_address(void* addr);
71-
extern void modify_check(void* ref);
7271

7372
// This type declaration needs to match AllocatorSelector in mmtk-core
7473
struct AllocatorSelector {

openjdk/mmtkMutator.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ struct BumpAllocator {
3333
void* cursor;
3434
void* limit;
3535
RustDynPtr space;
36-
RustDynPtr plan;
36+
void* context;
3737
};
3838

3939
struct LargeObjectAllocator {
4040
void* tls;
4141
void* space;
42-
RustDynPtr plan;
42+
void* context;
4343
};
4444

4545
struct ImmixAllocator {
4646
void* tls;
4747
void* cursor;
4848
void* limit;
4949
void* immix_space;
50-
RustDynPtr plan;
50+
void* context;
5151
uint8_t hot;
5252
uint8_t copy;
5353
void* large_cursor;
@@ -72,7 +72,7 @@ struct FLBlockList {
7272
struct FreeListAllocator {
7373
void* tls;
7474
void* space;
75-
RustDynPtr plan;
75+
void* context;
7676
FLBlockList* available_blocks;
7777
FLBlockList* available_blocks_stress;
7878
FLBlockList* unswept_blocks;
@@ -82,7 +82,7 @@ struct FreeListAllocator {
8282
struct MallocAllocator {
8383
void* tls;
8484
void* space;
85-
RustDynPtr plan;
85+
void* context;
8686
};
8787

8888
struct MarkCompactAllocator {

0 commit comments

Comments
 (0)