libunwind-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]