To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit 7d23f95f authored by qinsoon's avatar qinsoon
Browse files

fix

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