Name the thread stack and signal stack guard pages.
Bug: http://b/22228722 Change-Id: I1dae672e386e404fb304a34496a29fe21134c784
This commit is contained in:
parent
77455f85ab
commit
eeb6b57e75
@ -87,6 +87,7 @@ void __init_alternate_signal_stack(pthread_internal_t* thread) {
|
|||||||
// We can only use const static allocated string for mapped region name, as Android kernel
|
// We can only use const static allocated string for mapped region name, as Android kernel
|
||||||
// uses the string pointer directly when dumping /proc/pid/maps.
|
// uses the string pointer directly when dumping /proc/pid/maps.
|
||||||
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, ss.ss_sp, ss.ss_size, "thread signal stack");
|
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, ss.ss_sp, ss.ss_size, "thread signal stack");
|
||||||
|
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, stack_base, PAGE_SIZE, "thread signal stack guard page");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -140,6 +141,7 @@ static void* __create_thread_mapped_space(size_t mmap_size, size_t stack_guard_s
|
|||||||
munmap(space, mmap_size);
|
munmap(space, mmap_size);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, space, stack_guard_size, "thread stack guard page");
|
||||||
|
|
||||||
return space;
|
return space;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user