(i)
| 752 | // avoid heap allocation pressure and GC pauses during the collapse loop. |
| 753 | // The heap is 1-indexed (root at slot 1). Slot 0 is used as a scratch area |
| 754 | // by pop() so the caller can read fields after popping. |
| 755 | // pop() returns 0 (the scratch slot index) on success, or -1 if empty. |
| 756 | const SOA_GROW = 1.5; |
| 757 | class SoAHeap { |