Skip to content

Possible waste of memory #17

@wbochtler

Description

@wbochtler

I stumbled across line 5623 in the AllocateAlignedMemory function:

inc(Size,((Align shl 1)+SizeOf(pointer)));

My understanding is that the maximum misalignment is Align-1 bytes.
Therefore the doubling by means of "Align shl 1" is not clear to me or do I miss something?

Kind regards,
Werner

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions