Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: fusl/src/malloc/malloc.c

Issue 1706293003: [fusl] Remove some more tabs (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: apptest rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fusl/src/crypt/crypt_des.c ('k') | fusl/src/math/exp2l.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/malloc/malloc.c
diff --git a/fusl/src/malloc/malloc.c b/fusl/src/malloc/malloc.c
index ccf1f61242f556497d2968811efb71eef9db3a21..32278a26aad633f9d7ef1cadc0e463040fe9e818 100644
--- a/fusl/src/malloc/malloc.c
+++ b/fusl/src/malloc/malloc.c
@@ -133,27 +133,6 @@ static int bin_index_up(size_t x) {
496;
}
-#if 0
-void __dump_heap(int x)
-{
- struct chunk *c;
- int i;
- for (c = (void *)mal.heap; CHUNK_SIZE(c); c = NEXT_CHUNK(c))
- fprintf(stderr, "base %p size %zu (%d) flags %d/%d\n",
- c, CHUNK_SIZE(c), bin_index(CHUNK_SIZE(c)),
- c->csize & 15,
- NEXT_CHUNK(c)->psize & 15);
- for (i=0; i<64; i++) {
- if (mal.bins[i].head != BIN_TO_CHUNK(i) && mal.bins[i].head) {
- fprintf(stderr, "bin %d: %p\n", i, mal.bins[i].head);
- if (!(mal.binmap & 1ULL<<i))
- fprintf(stderr, "missing from binmap!\n");
- } else if (mal.binmap & 1ULL<<i)
- fprintf(stderr, "binmap wrongly contains %d!\n", i);
- }
-}
-#endif
-
void* __expand_heap(size_t*);
static struct chunk* expand_heap(size_t n) {
« no previous file with comments | « fusl/src/crypt/crypt_des.c ('k') | fusl/src/math/exp2l.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698