Hi,

No, the V8 heap allocation doesn't currently support custom alignment. Are
you seeing these be in different cache lines a lot? I could imagine that
being a problem for a lot of objects if it's a performance issue.

- Leszek

On Wed, Jan 24, 2024 at 6:22 PM 'Martin Schwarzl' via v8-dev <
[email protected]> wrote:

> Hi,
>
> I was wondering if there is a primitive to align the memory representation
> in torque
> similar to alignas in C++.
>
> To provide more context I'd like to align the JSArrayBuffers members
> raw_byte_length, raw_max_byte_length and backing_store to be in the same
> cache line.
>
> --
> --
> v8-dev mailing list
> [email protected]
> http://groups.google.com/group/v8-dev
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/v8-dev/82f8624c-9b77-49e2-a04d-0c92a1a60206n%40googlegroups.com
> <https://groups.google.com/d/msgid/v8-dev/82f8624c-9b77-49e2-a04d-0c92a1a60206n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/CAGRskv9vScb5zf3cs0byxchyP23Ertcgq3M%3D%3DLoJ6%3DzpeFvj6Q%40mail.gmail.com.

Reply via email to