Skip to content

Commit

Permalink
Update to MMTk core PR #949 (#240)
Browse files Browse the repository at this point in the history
Updates to mmtk/mmtk-core#949.

---------

Co-authored-by: mmtkgc-bot <mmtkgc.bot@gmail.com>
  • Loading branch information
qinsoon and mmtkgc-bot authored Oct 24, 2023
1 parent 2a6be16 commit 60a8357
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 29 deletions.
24 changes: 12 additions & 12 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 = "06a2e5d9773c9f7a32a6afc1add9cef311432dbc" }
mmtk = { git = "https://github.com/mmtk/mmtk-core.git", rev = "57af17fbfd94ff0df2cd3b1e504abe299ce4f0ab" }
# Uncomment the following to build locally
# mmtk = { path = "../repos/mmtk-core" }

Expand Down
5 changes: 0 additions & 5 deletions mmtk/src/active_plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::UPCALLS;
use mmtk::util::opaque_pointer::*;
use mmtk::vm::ActivePlan;
use mmtk::Mutator;
use mmtk::Plan;
use std::collections::VecDeque;
use std::marker::PhantomData;

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

impl<const COMPRESSED: bool> ActivePlan<OpenJDK<COMPRESSED>> for VMActivePlan {
fn global() -> &'static dyn Plan<VM = OpenJDK<COMPRESSED>> {
crate::singleton::<COMPRESSED>().get_plan()
}

fn is_mutator(tls: VMThread) -> bool {
unsafe { ((*UPCALLS).is_mutator)(tls) }
}
Expand Down
5 changes: 0 additions & 5 deletions mmtk/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,6 @@ pub extern "C" fn is_mapped_address(addr: Address) -> bool {
memory_manager::is_mapped_address(addr)
}

#[no_mangle]
pub extern "C" fn modify_check(object: ObjectReference) {
with_singleton!(|singleton| memory_manager::modify_check(singleton, object))
}

#[no_mangle]
pub extern "C" fn add_weak_candidate(reff: ObjectReference) {
with_singleton!(|singleton| memory_manager::add_weak_candidate(singleton, reff))
Expand Down
1 change: 0 additions & 1 deletion openjdk/mmtk.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ extern void release_buffer(void** buffer, size_t len, size_t cap);

extern bool is_in_mmtk_spaces(void* ref);
extern bool is_mapped_address(void* addr);
extern void modify_check(void* ref);

// This type declaration needs to match AllocatorSelector in mmtk-core
struct AllocatorSelector {
Expand Down
10 changes: 5 additions & 5 deletions openjdk/mmtkMutator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ struct BumpAllocator {
void* cursor;
void* limit;
RustDynPtr space;
RustDynPtr plan;
void* context;
};

struct LargeObjectAllocator {
void* tls;
void* space;
RustDynPtr plan;
void* context;
};

struct ImmixAllocator {
void* tls;
void* cursor;
void* limit;
void* immix_space;
RustDynPtr plan;
void* context;
uint8_t hot;
uint8_t copy;
void* large_cursor;
Expand All @@ -72,7 +72,7 @@ struct FLBlockList {
struct FreeListAllocator {
void* tls;
void* space;
RustDynPtr plan;
void* context;
FLBlockList* available_blocks;
FLBlockList* available_blocks_stress;
FLBlockList* unswept_blocks;
Expand All @@ -82,7 +82,7 @@ struct FreeListAllocator {
struct MallocAllocator {
void* tls;
void* space;
RustDynPtr plan;
void* context;
};

struct MarkCompactAllocator {
Expand Down

0 comments on commit 60a8357

Please sign in to comment.