[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MPS image cache
From: |
Eli Zaretskii |
Subject: |
Re: MPS image cache |
Date: |
Sun, 05 May 2024 21:04:24 +0300 |
> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Cc: eller.helmut@gmail.com, emacs-devel@gnu.org
> Date: Sun, 05 May 2024 19:45:03 +0200
>
> @@ -2978,7 +2977,8 @@ igc_make_face_cache (void)
> void *
> igc_make_ptr_vec (size_t n)
> {
> - return alloc (n * sizeof (void *), IGC_OBJ_PTR_VEC, PVEC_FREE);
> + return alloc (sizeof (struct igc_header) + (n - 1) * sizeof (void *),
> + IGC_OBJ_PTR_VEC, PVEC_FREE);
> }
>
> what you removed was correct because alloc takes the size in bytes to
> allocate from the POV of the client.
>
> Alloc computes the size needed from MPS
>
> size = obj_size (size);
>
> which includes the header among other things.
Thanks, I tried to fix that now.
- Re: MPS image cache, (continued)
- Re: MPS image cache, Gerd Möllmann, 2024/05/05
- Re: MPS image cache, Eli Zaretskii, 2024/05/05
- Re: MPS image cache, Gerd Möllmann, 2024/05/05
- Re: MPS image cache, Eli Zaretskii, 2024/05/05
- Re: MPS image cache, Gerd Möllmann, 2024/05/05
- Re: MPS image cache, Eli Zaretskii, 2024/05/05
- Re: MPS image cache, Gerd Möllmann, 2024/05/05
- Re: MPS image cache, Eli Zaretskii, 2024/05/05
- Re: MPS image cache, Gerd Möllmann, 2024/05/05
- Re: MPS image cache, Gerd Möllmann, 2024/05/05
- Re: MPS image cache,
Eli Zaretskii <=
- Re: MPS image cache, Eli Zaretskii, 2024/05/05
- Re: MPS image cache, Gerd Möllmann, 2024/05/05
- Re: MPS image cache, Eli Zaretskii, 2024/05/05
- Re: MPS image cache, Gerd Möllmann, 2024/05/05
- Re: MPS image cache, Helmut Eller, 2024/05/05
- Re: MPS image cache, Gerd Möllmann, 2024/05/05
- Re: MPS image cache, Helmut Eller, 2024/05/06
- Re: MPS image cache, Gerd Möllmann, 2024/05/06
- Re: MPS image cache, Helmut Eller, 2024/05/03
- Re: MPS image cache, Gerd Möllmann, 2024/05/04