← Commit list

a318bba19

Denys Vlasenko
Denys Vlasenko
2016-10-26
SUCCESS Duration: 206s

Subject

ash: [MEMALLOC] Made grabstackblock an inline wrapper for stalloc

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/ash.c+2 -4
@@ -1491,12 +1491,10 @@ sstrdup(const char *p)
return memcpy(stalloc(len), p, len);
}
-static void
+static inline void
grabstackblock(size_t len)
{
- len = SHELL_ALIGN(len);
- g_stacknxt += len;
- g_stacknleft -= len;
+ stalloc(len);
}
static void