facebook / FBRetainCycleDetector

iOS library to help detecting retain cycles in runtime.
Other
4.21k stars 586 forks source link

Questions about elements in FBBlockStrongLayout #114

Open iCodeWoods opened 3 years ago

iCodeWoods commented 3 years ago

in _GetBlockStrongLayout has these code, but why is it calculated like this? thx

  // Figure out the number of pointers it takes to fill out the object, rounding up.
  const size_t elements = (blockLiteral->descriptor->size + ptrSize - 1) / ptrSize;