[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] pvm-alloc: make GC expose multi-threaded functions
From: |
Jose E. Marchesi |
Subject: |
Re: [PATCH] pvm-alloc: make GC expose multi-threaded functions |
Date: |
Sat, 26 Aug 2023 14:49:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
OK. Thanks.
> 2023-08-26 Mohammad-Reza Nabipoor <mnabipoor@gnu.org>
>
> * libpoke/pvm-alloc.h (GC_THREADS): New cpp define.
> (pvm_alloc_register_thread): Remove `const' qualifier from local var.
> ---
> ChangeLog | 5 +++++
> libpoke/pvm-alloc.c | 6 ++++--
> 2 files changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/ChangeLog b/ChangeLog
> index b701694e..3b13a582 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,8 @@
> +2023-08-26 Mohammad-Reza Nabipoor <mnabipoor@gnu.org>
> +
> + * libpoke/pvm-alloc.h (GC_THREADS): New cpp define.
> + (pvm_alloc_register_thread): Remove `const' qualifier from local var.
> +
> 2023-08-26 Jose E. Marchesi <jemarch@gnu.org>
>
> * libpoke/pvm-alloc.h: Fix prototypes for
> diff --git a/libpoke/pvm-alloc.c b/libpoke/pvm-alloc.c
> index 0cd95d7c..8cdb718c 100644
> --- a/libpoke/pvm-alloc.c
> +++ b/libpoke/pvm-alloc.c
> @@ -17,9 +17,11 @@
> */
>
> #include <config.h>
> -#include <gc/gc.h>
> #include <assert.h>
>
> +#define GC_THREADS
> +#include <gc/gc.h>
> +
> #include "pvm.h"
> #include "pvm-val.h"
>
> @@ -108,7 +110,7 @@ pvm_alloc_remove_gc_roots (void *pointer, size_t nelems)
> void
> pvm_alloc_register_thread ()
> {
> - const struct GC_stack_base sb;
> + struct GC_stack_base sb;
>
> assert (GC_get_stack_base (&sb) == GC_SUCCESS);
> /* The following call may return GC_SUCCESS or GC_DUPLICATE. */