Skip to content

Cache line padding of Pool is incorrect #3

@ilnarb

Description

@ilnarb

usual cache line size is 64 byte.
it seems sizeof (Pool) == 32
you need to write
char cache_line_padding[CACHE_LINE_SIZE - sizeof(freed) - sizeof(raw) - sizeof(elem_size)];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions