Author: Matti Picus <[email protected]>
Branch:
Changeset: r97215:8837d155d951
Date: 2019-08-19 10:17 +0300
http://bitbucket.org/pypy/pypy/changeset/8837d155d951/
Log: resync vmprof
diff --git a/rpython/rlib/rvmprof/src/shared/vmprof_common.c
b/rpython/rlib/rvmprof/src/shared/vmprof_common.c
--- a/rpython/rlib/rvmprof/src/shared/vmprof_common.c
+++ b/rpython/rlib/rvmprof/src/shared/vmprof_common.c
@@ -244,9 +244,9 @@
return -1;
if (thread_count == threads_size) {
threads_size += threads_size_step;
- threads = realloc(threads, sizeof(pid_t) * threads_size);
+ threads = realloc(threads, sizeof(pthread_t) * threads_size);
assert(threads != NULL);
- memset(threads + thread_count, 0, sizeof(pid_t) * threads_size_step);
+ memset(threads + thread_count, 0, sizeof(pthread_t) *
threads_size_step);
}
threads[thread_count++] = tid;
return thread_count;
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit