mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-10 17:50:59 +03:00
Use a stub replacement and disable dss when sbrk is not supported
This commit is contained in:
parent
5ff709c264
commit
83c324acd8
3 changed files with 22 additions and 0 deletions
|
|
@ -3,6 +3,17 @@
|
|||
/******************************************************************************/
|
||||
/* Data. */
|
||||
|
||||
#ifndef JEMALLOC_HAVE_SBRK
|
||||
void *
|
||||
sbrk(intptr_t increment)
|
||||
{
|
||||
|
||||
not_implemented();
|
||||
|
||||
return (NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Protects sbrk() calls. This avoids malloc races among threads, though it
|
||||
* does not protect against races with threads that call sbrk() directly.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue