WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 1168f297 authored by qinsoon's avatar qinsoon
Browse files

[wip] get handle from global, and create handle from int

parent 55aa2fe5
......@@ -22,4 +22,4 @@ pub fn alloc_large(size: usize, align: usize, mutator: &mut immix::ImmixMutatorL
return ret_addr;
}
}
}
\ No newline at end of file
}
......@@ -362,4 +362,4 @@ mod tests {
println!("Allocation{}: {}", i, ret);
}
}
}
\ No newline at end of file
}
......@@ -567,4 +567,4 @@ pub fn steal_process_edge(base: Address, offset: usize, local_queue:&mut Vec<Obj
}
}
}
}
\ No newline at end of file
}
......@@ -344,4 +344,4 @@ impl fmt::Display for ImmixMutatorLocal {
write!(f, "block = {}", self.block.as_ref().unwrap())
}
}
}
\ No newline at end of file
}
......@@ -440,4 +440,4 @@ impl fmt::Debug for ImmixBlock {
}
write!(f, "]")
}
}
\ No newline at end of file
}
......@@ -36,4 +36,4 @@ pub enum LineMark {
pub enum BlockMark {
Usable,
Full
}
\ No newline at end of file
}
......@@ -87,4 +87,4 @@ pub trait Space {
pub fn fill_alignment_gap(start : Address, end : Address) -> () {
debug_assert!(end >= start);
start.memset(ALIGNMENT_VALUE, end.diff(start));
}
\ No newline at end of file
}
......@@ -208,4 +208,4 @@ pub extern fn muentry_alloc_large(mutator: *mut ImmixMutatorLocal, size: usize,
#[no_mangle]
pub extern fn force_gc() {
heap::gc::trigger_gc();
}
\ No newline at end of file
}
......@@ -393,4 +393,4 @@ mod tests {
assert_eq!(header_get_hybrid_length(encode), 10);
assert_eq!(header_get_gctype_id(encode), 2);
}
}
\ No newline at end of file
}
......@@ -96,4 +96,4 @@ pub const SHORT_ENCODE_BIT : usize = 7;
#[inline(always)]
pub fn get_ref_byte(alloc_map:*mut u8, space_start: Address, obj: ObjectReference) -> u8 {
unsafe {*alloc_map.offset((obj.to_address().diff(space_start) >> LOG_POINTER_SIZE) as isize)}
}
\ No newline at end of file
}
mod test_gc_harness;
mod test_gcbench;
mod test_gc_linked_list;
\ No newline at end of file
mod test_gc_linked_list;
......@@ -275,4 +275,4 @@ fn test_alloc_trace() {
heap::gc::start_trace(&mut roots, shared_space, lo_space);
mutator.destroy();
}
\ No newline at end of file
}
......@@ -210,4 +210,4 @@ fn linked_list_survive_gc() {
}
mutator.destroy();
}
\ No newline at end of file
}
......@@ -205,4 +205,4 @@ fn start() {
println!("Finished with {} collections", heap::gc::GC_COUNT.load(Ordering::SeqCst));
mutator.destroy();
}
\ No newline at end of file
}
......@@ -95,4 +95,4 @@ lazy_static! {
aot: ValueLocation::Relocatable(RegGroup::GPR, String::from("muentry_frem")),
jit: RwLock::new(None)
};
}
\ No newline at end of file
}
......@@ -208,4 +208,4 @@ fn find_func_for_address (cf: &RwLockReadGuard<HashMap<MuID, RwLock<CompiledFunc
}
panic!("cannot find compiled function for pc 0x{:x}", pc_addr);
}
\ No newline at end of file
}
......@@ -4,4 +4,4 @@ pub extern fn muentry_frem(a: f64, b: f64) -> f64 {
use std::ops::Rem;
a.rem(b)
}
\ No newline at end of file
}
......@@ -28,4 +28,4 @@ pub fn allocate_value(value: P<Value>, vm: &VM) -> ValueLocation {
let addr = allocate(backend_ty.size, backend_ty.alignment).to_address();
ValueLocation::Direct(RegGroup::GPR, addr)
}
\ No newline at end of file
}
......@@ -203,4 +203,4 @@ pub extern fn mu_main(serialized_vm : *const c_char) {
thread.join().unwrap();
}
}
\ No newline at end of file
}
......@@ -171,4 +171,4 @@ pub fn link_dylib_with_extra_srcs(funcs: Vec<MuName>, srcs: Vec<String>, out: &s
out_path.push(out);
link_dylib_internal(files, out_path)
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment