mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Add fixes performance and static web server
This commit is contained in:
parent
b6793d42d5
commit
c45e46f871
108 changed files with 2927 additions and 819 deletions
|
@ -28,8 +28,11 @@
|
|||
*/
|
||||
bool isheap(void *p) {
|
||||
int x, i;
|
||||
#if 1
|
||||
register intptr_t rsp asm("rsp");
|
||||
if ((intptr_t)p >= rsp) return false;
|
||||
#endif
|
||||
if ((intptr_t)p <= (intptr_t)_end) return false;
|
||||
x = (intptr_t)p >> 16;
|
||||
i = FindMemoryInterval(&_mmi, x);
|
||||
return i < _mmi.i && x >= _mmi.p[i].x && x <= _mmi.p[i].y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue