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

Commit a000ae83 authored by Isaac Oscar Gariano's avatar Isaac Oscar Gariano
Browse files

GC Type computation now adds padding as neccesary

parent c509f66c
......@@ -17,6 +17,7 @@ use std;
use std::sync::Arc;
use utils::POINTER_SIZE;
use utils::ByteSize;
use utils::math::align_up;
use objectmodel;
use std::u32;
pub const GCTYPE_INIT_ID: u32 = u32::MAX;
......@@ -205,13 +206,14 @@ impl RefPattern {
for off in offsets {
vec.push(base + off);
}
base + size
}
&RefPattern::NestedType(ref types) => {
let mut cur_base = base;
for ty in types {
cur_base = align_up(cur_base, ty.alignment);
let nested_offset = ty.gen_ref_offsets();
let mut nested_offset = nested_offset.iter().map(|x| x + cur_base).collect();
......
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