Commit 7d23f95f authored by qinsoon's avatar qinsoon

fix

parent c6c7c7d3
......@@ -339,10 +339,10 @@ pub extern "C" fn muentry_alloc_any(
align: usize
) -> ObjectReference {
let actual_size = size + OBJECT_HEADER_SIZE;
if actual_size >= LARGE_OBJECT_THRESHOLD {
muentry_alloc_fast(mutator, actual_size, align)
if actual_size <= LARGE_OBJECT_THRESHOLD {
muentry_alloc_fast(mutator, size, align)
} else {
muentry_alloc_large(mutator, actual_size, align)
muentry_alloc_large(mutator, size, align)
}
}
......
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