Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement sallocx #85

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

implement sallocx #85

wants to merge 3 commits into from

Conversation

hdhoang
Copy link

@hdhoang hdhoang commented Aug 21, 2022

hello again!

i have made an attempt at sallocx. I don't know how to build a C test program with custom _rjem_ prefix, so i copied existing v05 and call jemalloc-sys function in there. This requires pub fn alloc from the common directory.

about the test data, i don't understand how allocating 12 bytes, rounded up to 24:

  left: `24`,
 right: `16`', src/main.rs:12:9

naively, i thought 1->8, so 12->16 as the closest byte-multiple.

ps i think the "jemalloc-v05-unprefixed" test is uncommitted somehow.

@hdhoang hdhoang marked this pull request as draft September 20, 2022 10:10
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.

None yet

1 participant