This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
hi, I have a question about "MULTI_PAGE_ALIASING" in allocate_stack()
- From: Xishi Qiu <qiuxishi at huawei dot com>
- To: <libc-alpha at sourceware dot org>
- Cc: Xishi Qiu <qiuxishi at huawei dot com>
- Date: Thu, 17 Dec 2015 21:22:58 +0800
- Subject: hi, I have a question about "MULTI_PAGE_ALIASING" in allocate_stack()
- Authentication-results: sourceware.org; auth=none
allocate_stack()
...
/* To avoid aliasing effects on a larger scale than pages we
adjust the allocated stack size if necessary. This way
allocations directly following each other will not have
aliasing problems. */
#if MULTI_PAGE_ALIASING != 0
if ((size % MULTI_PAGE_ALIASING) == 0)
size += pagesize_m1 + 1;
#endif
...
I don't quite understand "aliasing problems", could you explain it?
If we don't alloc each stack on a aligned addr, will there be less
cache conflict?
Thanks,
Xishi Qiu