Loïc Grenié on Sun, 29 Jan 2017 19:02:37 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Use PROT_NONE for unused virtual stack memory


On 2017-01-29 at 18:59 GMT+01:00 Bill wrote:
On Sun, Jan 29, 2017 at 06:44:42PM +0100, Loďc Grenié wrote:
>     Sorry for the intrusion but the patch introduces a harmless compilation
>   warning under windows that can easily be removed with
>
> -------------------------------------------------------------------------------
> diff --git a/src/language/init.c b/src/language/init.c
> index e6a9e1056..7c5e7f2f8 100644
> --- a/src/language/init.c
> +++ b/src/language/init.c
> @@ -662,12 +662,6 @@ pari_mainstack_malloc(size_t s)
>    return malloc(s); /* NOT pari_malloc, e_MEM would be deadly */
>  }
>
> -static void
> -pari_mainstack_mfree(void *s, size_t size) { (void) size; free(s); }
> -
> -static void
> -pari_mainstack_mreset(pari_sp from, pari_sp to) { (void) from; (void) to; }
> -
>  static int
>  pari_mainstack_mextend(pari_sp from, pari_sp to) { (void) from; (void) to;
> return 0; }

This was done in 6942fab4.

     Sorry I had missed it (and had not recompiled since!)

          Loïc