Skip to content

Commit 3f9d995

Browse files
TCMalloc Teamcopybara-github
TCMalloc Team
authored andcommitted
Fix number of objects per page in tcmalloc docs.
Explanation of probability of fragmentation doesn't match number of objects per page in previous paragraph. PiperOrigin-RevId: 419564087 Change-Id: I4c5ada0d13c5a44e9c1c493d09c3f35b78d90482
1 parent c004411 commit 3f9d995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/design.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ Small pages are better able to handle the memory requirements of the application
367367
with less overhead. For example, a half-used 4KiB page will have 2KiB left over
368368
versus a 32KiB page which would have 16KiB. Small pages are also more likely to
369369
become free. For example, a 4KiB page can hold eight 512-byte objects versus 64
370-
objects on a 32KiB page; and there is much less chance of 32 objects being free
370+
objects on a 32KiB page; and there is much less chance of 64 objects being free
371371
at the same time than there is of eight becoming free.
372372

373373
Large pages result in less need to fetch and return memory from the back-end. A

0 commit comments

Comments
 (0)