@@ -3,7 +3,7 @@ use libc::{c_char, c_void};
3
3
use std:: ffi:: CStr ;
4
4
5
5
use mmtk:: memory_manager;
6
- use mmtk:: Allocator ;
6
+ use mmtk:: AllocationSemantics ;
7
7
use mmtk:: util:: { ObjectReference , OpaquePointer , Address } ;
8
8
use mmtk:: { Plan , MMTK } ;
9
9
use mmtk:: util:: constants:: LOG_BYTES_IN_PAGE ;
@@ -52,12 +52,12 @@ pub extern "C" fn flush_mutator(mutator: *mut Mutator<SelectedPlan<OpenJDK>>) {
52
52
53
53
#[ no_mangle]
54
54
pub extern "C" fn alloc ( mutator : * mut Mutator < SelectedPlan < OpenJDK > > , size : usize ,
55
- align : usize , offset : isize , allocator : Allocator ) -> Address {
55
+ align : usize , offset : isize , allocator : AllocationSemantics ) -> Address {
56
56
memory_manager:: alloc :: < OpenJDK > ( unsafe { & mut * mutator } , size, align, offset, allocator)
57
57
}
58
58
59
59
#[ no_mangle]
60
- pub extern "C" fn get_allocator_mapping ( allocator : Allocator ) -> AllocatorSelector {
60
+ pub extern "C" fn get_allocator_mapping ( allocator : AllocationSemantics ) -> AllocatorSelector {
61
61
memory_manager:: get_allocator_mapping ( & SINGLETON , allocator)
62
62
}
63
63
@@ -95,7 +95,7 @@ pub extern "C" fn alloc_slow_largeobject(allocator: *mut c_void, size: usize, al
95
95
96
96
#[ no_mangle]
97
97
pub extern "C" fn post_alloc ( mutator : * mut Mutator < SelectedPlan < OpenJDK > > , refer : ObjectReference , type_refer : ObjectReference ,
98
- bytes : usize , allocator : Allocator ) {
98
+ bytes : usize , allocator : AllocationSemantics ) {
99
99
memory_manager:: post_alloc :: < OpenJDK > ( unsafe { & mut * mutator } , refer, type_refer, bytes, allocator)
100
100
}
101
101
0 commit comments