[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libunwind-devel] Bug fixes in libunwind git = make another "release
From: |
Arun Sharma |
Subject: |
Re: [Libunwind-devel] Bug fixes in libunwind git = make another "release"? |
Date: |
Tue, 22 Mar 2011 08:51:22 -0700 |
On Tue, Mar 22, 2011 at 8:04 AM, Lassi Tuura <address@hidden> wrote:
> +/* Initialise memory validation method. On linux kernels <2.6.21,
> + mincore() returns incorrect value for MAP_PRIVATE mappings,
> + such as stacks. If mincore() was available at compile time,
> + check if we can actually use it. If not, use msync() instead. */
> +PROTECTED void
> +tdep_init_mem_validate (void)
> +{
> +#ifdef HAVE_MINCORE
> + unsigned char present;
> + if (mincore (&present, 1, &present) == 0)
> + {
> + Debug(1, "using mincore to validate memory\n");
> + mem_validate_func = mincore_validate;
> + }
You might want to write to "present" to improve the chances that
mincore() finds the page in core. Otherwise looks good. Konstantin:
hope this doesn't break FreeBSD.
-Arun
- Re: [Libunwind-devel] Bug fixes in libunwind git = make another "release"?, (continued)
- Re: [Libunwind-devel] Bug fixes in libunwind git = make another "release"?, Joe Damato, 2011/03/23
- Re: [Libunwind-devel] Bug fixes in libunwind git = make another "release"?, Paul Pluzhnikov, 2011/03/23
- Re: [Libunwind-devel] Bug fixes in libunwind git = make another "release"?, Arun Sharma, 2011/03/21
- Re: [Libunwind-devel] Bug fixes in libunwind git = make another "release"?, Lassi Tuura, 2011/03/21
- Re: [Libunwind-devel] Bug fixes in libunwind git = make another "release"?, Konstantin Belousov, 2011/03/21
- Re: [Libunwind-devel] Bug fixes in libunwind git = make another "release"?, Arun Sharma, 2011/03/21
- Re: [Libunwind-devel] Bug fixes in libunwind git = make another "release"?, Lassi Tuura, 2011/03/22
- Re: [Libunwind-devel] Bug fixes in libunwind git = make another "release"?, Lassi Tuura, 2011/03/22
- Re: [Libunwind-devel] Bug fixes in libunwind git = make another "release"?,
Arun Sharma <=
- Re: [Libunwind-devel] Bug fixes in libunwind git = make another "release"?, Konstantin Belousov, 2011/03/22
- Re: [Libunwind-devel] Bug fixes in libunwind git = make another "release"?, Lassi Tuura, 2011/03/22