mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Make some systemic improvements
- add vdso dump utility - tests now log stack usage - rename g_ftrace to __ftrace - make internal spinlocks go faster - add conformant c11 atomics library - function tracing now logs stack usage - make function call tracing thread safe - add -X unsecure (no ssl) mode to redbean - munmap() has more consistent behavior now - pacify fsync() calls on python unit tests - make --strace flag work better in redbean - start minimizing and documenting compiler flags
This commit is contained in:
parent
c6bbca55e9
commit
9208c83f7a
141 changed files with 1948 additions and 1411 deletions
6
third_party/python/Python/cosmomodule.c
vendored
6
third_party/python/Python/cosmomodule.c
vendored
|
@ -80,7 +80,7 @@ polyfilled yet.");
|
|||
static PyObject *
|
||||
cosmo_syscount(PyObject *self, PyObject *noargs)
|
||||
{
|
||||
return PyLong_FromSize_t(g_syscount);
|
||||
return PyLong_FromSize_t(__syscount);
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(rdtsc_doc,
|
||||
|
@ -215,13 +215,13 @@ static int FtracerObject_init(PyObject* self, PyObject *args, PyObject *kwargs)
|
|||
|
||||
static PyObject* FtracerObject_enter(PyObject *self, PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
++g_ftrace;
|
||||
++__ftrace;
|
||||
return self;
|
||||
}
|
||||
|
||||
static PyObject* FtracerObject_exit(PyObject *self, PyObject *args)
|
||||
{
|
||||
--g_ftrace;
|
||||
--__ftrace;
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue