{"id":16532140,"url":"https://github.com/madsmtm/linear-malloc","last_synced_at":"2026-04-21T03:33:07.538Z","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":"2025-09-22T20:54:26.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T12:59:37.101Z","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":"2025-09-22T20:54:29.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,"purl":"pkg:github/madsmtm/linear-malloc","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/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madsmtm%2Flinear-malloc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32075241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T02:38:07.213Z","status":"ssl_error","status_checked_at":"2026-04-21T02:38:06.559Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-04-21T03:33:07.519Z","avatar_url":"https://github.com/madsmtm.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"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","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"}