Commit 482a974
Call the common case of AllocateBackingArray directly instead of through the function pointer.
Also remove ABSL_ATTRIBUTE_NOINLINE from AllocateBackingArray. I think that was copied unnecessarily from DeallocateBackingArray. DeallocateBackingArray is called directly in some places that we don't want it to be inlined, but AllocateBackingArray is only called by function pointer before this change so it wouldn't have had any effect.
Motivation: calling the allocation function through a function pointer prevents profile-guided-heap-optimization.
PiperOrigin-RevId: 834395282
Change-Id: I930757baf27784b81ee0a8e6596d5a3f31da528a1 parent dd2ad43 commit 482a974
2 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
763 | 764 | | |
764 | 765 | | |
765 | 766 | | |
766 | | - | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
767 | 777 | | |
768 | 778 | | |
769 | 779 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1492 | 1492 | | |
1493 | 1493 | | |
1494 | 1494 | | |
1495 | | - | |
| 1495 | + | |
1496 | 1496 | | |
1497 | 1497 | | |
1498 | 1498 | | |
| 1499 | + | |
| 1500 | + | |
1499 | 1501 | | |
1500 | 1502 | | |
1501 | 1503 | | |
| |||
0 commit comments