mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 13:53:11 +00:00
getpid() fix for Win32
This commit is contained in:
@@ -23,4 +23,6 @@
|
|||||||
# define ERANGE ERROR_INVALID_DATA
|
# define ERANGE ERROR_INVALID_DATA
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define getpid() GetCurrentProcessId()
|
||||||
|
|
||||||
#endif /* MSVC_COMPAT_WINDOWS_EXTRA_H */
|
#endif /* MSVC_COMPAT_WINDOWS_EXTRA_H */
|
||||||
|
|||||||
@@ -1384,6 +1384,8 @@ prof_dump_maps(bool propagate_err)
|
|||||||
cassert(config_prof);
|
cassert(config_prof);
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
mfd = prof_open_maps("/proc/curproc/map");
|
mfd = prof_open_maps("/proc/curproc/map");
|
||||||
|
#elif defined(_WIN32)
|
||||||
|
mfd = -1; // Not implemented
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
int pid = getpid();
|
int pid = getpid();
|
||||||
|
|||||||
Reference in New Issue
Block a user