Skip to content

Conversation

data-man
Copy link
Contributor

@data-man data-man commented Jan 7, 2018

No description provided.


type
Allocator* {.inheritable.} = ptr object
alloc*: proc (a: Allocator; size: int; alignment = 8): pointer {.nimcall.}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think my default is fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E.g. I want to use jemalloc

je_aligned_alloc(size_t alignment, size_t size)

@Araq Araq merged commit fd1883f into nim-lang:devel Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants