Replies: 1 comment
-
@xiaoxmeng Meng, can you help answer this question? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
velox/velox/common/memory/AllocationPool.cpp
Lines 62 to 80 in babb1c3
Problem statement:
It seems in AllocationPool::newRunImpl, we try to point the
currentRun_
variable to a run whose size is greater or equal thannumPages
parameter. However it seems when we don't enter theif (currentRun_ >= allocation_.numRuns()) {
condition, we simply move thecurrentRun
to point to the next run inallocation_
.Question:
How does next run in
allocation_
guarantee to have size GE thannumPages
?Beta Was this translation helpful? Give feedback.
All reactions