[pypy-commit] pypy default: copy over changes from vmprof-python repo 34ec7ccd4

plan_rich pypy.commits at gmail.com
Thu Mar 30 15:33:43 EDT 2017


Author: Richard Plangger <planrichi at gmail.com>
Branch: 
Changeset: r90878:d567917b86fe
Date: 2017-03-30 15:33 -0400
http://bitbucket.org/pypy/pypy/changeset/d567917b86fe/

Log:	copy over changes from vmprof-python repo 34ec7ccd4

diff --git a/rpython/rlib/rvmprof/src/shared/vmprof_main_win32.h b/rpython/rlib/rvmprof/src/shared/vmprof_main_win32.h
--- a/rpython/rlib/rvmprof/src/shared/vmprof_main_win32.h
+++ b/rpython/rlib/rvmprof/src/shared/vmprof_main_win32.h
@@ -51,7 +51,7 @@
 #ifdef RPYTHON_LL2CTYPES
     return 0; // not much we can do
 #else
-#ifndef RPY_TLOFS_thread_ident
+#if !defined(RPY_TLOFS_thread_ident) && defined(RPYTHON_VMPROF)
     return 0; // we can't freeze threads, unsafe
 #else
     hThread = OpenThread(THREAD_ALL_ACCESS, FALSE, thread_id);


More information about the pypy-commit mailing list