mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Remove some legacy cruft
Function trace logs will report stack usage accurately. It won't include the argv/environ block. Our clone() polyfill is now simpler and does not use as much stack memory. Function call tracing on x86 is now faster too
This commit is contained in:
parent
8db646f6b2
commit
a15958edc6
21 changed files with 291 additions and 467 deletions
|
@ -48,9 +48,8 @@
|
|||
* @param st is open symbol table for current executable
|
||||
* @return -1 w/ errno if error happened
|
||||
*/
|
||||
dontinstrument int PrintBacktraceUsingSymbols(int fd,
|
||||
const struct StackFrame *bp,
|
||||
struct SymbolTable *st) {
|
||||
int PrintBacktraceUsingSymbols(int fd, const struct StackFrame *bp,
|
||||
struct SymbolTable *st) {
|
||||
size_t gi;
|
||||
char *cxxbuf;
|
||||
intptr_t addr;
|
||||
|
|
|
@ -33,14 +33,14 @@ static char __watch_last[4096];
|
|||
|
||||
void __watch_hook(void);
|
||||
|
||||
static dontinstrument inline void Copy(char *p, char *q, size_t n) {
|
||||
dontinstrument static inline void Copy(char *p, char *q, size_t n) {
|
||||
size_t i;
|
||||
for (i = 0; i < n; ++i) {
|
||||
p[i] = q[i];
|
||||
}
|
||||
}
|
||||
|
||||
static dontinstrument inline int Cmp(char *p, char *q, size_t n) {
|
||||
dontinstrument static inline int Cmp(char *p, char *q, size_t n) {
|
||||
if (n == 8)
|
||||
return READ64LE(p) != READ64LE(q);
|
||||
if (n == 4)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue