We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
os/src/algorithm/src/allocator/segment_tree_allocator.rs
SegmentTreeAllocator::new
在线段树分配器里的new方法里面,分配给tree的大小是
let mut tree = vec![0u8; 2 * leaf_count];
看之后的代码感觉是用每个bit位做节点,所以想问问这里是不是忘了除以8
The text was updated successfully, but these errors were encountered:
Tuyixiang
No branches or pull requests
os/src/algorithm/src/allocator/segment_tree_allocator.rs
SegmentTreeAllocator::new
在线段树分配器里的new方法里面,分配给tree的大小是
let mut tree = vec![0u8; 2 * leaf_count];
看之后的代码感觉是用每个bit位做节点,所以想问问这里是不是忘了除以8
The text was updated successfully, but these errors were encountered: