{"id":16532140,"url":"https://github.com/madsmtm/linear-malloc","last_synced_at":"2025-03-03T10:43:42.323Z","repository":{"id":62442254,"uuid":"462083457","full_name":"madsmtm/linear-malloc","owner":"madsmtm","description":"An ultra simple single-threaded linear allocator","archived":false,"fork":false,"pushed_at":"2022-02-22T00:50:54.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T21:37:11.845Z","etag":null,"topics":["calloc","custom-allocator","linear-allocator","malloc"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madsmtm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-22T00:50:40.000Z","updated_at":"2022-02-22T00:52:16.000Z","dependencies_parsed_at":"2022-11-01T22:02:26.131Z","dependency_job_id":null,"html_url":"https://github.com/madsmtm/linear-malloc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madsmtm%2Flinear-malloc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madsmtm%2Flinear-malloc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madsmtm%2Flinear-malloc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madsmtm%2Flinear-malloc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madsmtm","download_url":"https://codeload.github.com/madsmtm/linear-malloc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241087643,"owners_count":19907471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calloc","custom-allocator","linear-allocator","malloc"],"created_at":"2024-10-11T18:11:46.753Z","updated_at":"2025-03-03T10:43:42.300Z","avatar_url":"https://github.com/madsmtm.png","language":"Rust","readme":"# `linear-malloc`\n\n[![Latest version](https://badgen.net/crates/v/linear-malloc)](https://crates.io/crates/linear-malloc)\n[![Documentation](https://docs.rs/linear-malloc/badge.svg)](https://docs.rs/linear-malloc/)\n\n# DISCLAIMER! This is a quick hack I did to test things. Don't use!\n\nAn ultra simple single-threaded linear allocator.\n\nUseful to make the output of applications running under Cachegrind/Callgrind\nmore stable (since it doesn't try to do the clever optimizations that the\nsystem allocator does).\n\n## Usage\n\nLinux:\n```sh\ncargo build\nLD_PRELOAD=./target/debug/liblinear_malloc.so your-binary\n```\n\nmacOS:\n```sh\ncargo build\nDYLD_INSERT_LIBRARIES=./target/debug/liblinear_malloc.dylib DYLD_FORCE_FLAT_NAMESPACE=1 your-binary\n```\n\n## Acknowledgements\n\nGot some useful info about allocation strategies from [@mtrebi's `memory-allocators`](https://github.com/mtrebi/memory-allocators), and [@ezrosent's \"Allocators in Rust\"](https://github.com/ezrosent/allocators-rs) was a good source to help set up the basic framework.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadsmtm%2Flinear-malloc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadsmtm%2Flinear-malloc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadsmtm%2Flinear-malloc/lists"}