Author: Matti Picus <[email protected]>
Branch: win32-vmprof
Changeset: r92986:351273f6cab2
Date: 2017-11-09 19:58 +0200
http://bitbucket.org/pypy/pypy/changeset/351273f6cab2/

Log:    call get_ident to register thread_ident in pypy_threadlocal_s

diff --git a/rpython/rlib/rvmprof/test/test_rvmprof.py 
b/rpython/rlib/rvmprof/test/test_rvmprof.py
--- a/rpython/rlib/rvmprof/test/test_rvmprof.py
+++ b/rpython/rlib/rvmprof/test/test_rvmprof.py
@@ -100,6 +100,8 @@
 
     ENTRY_POINT_ARGS = (int, float)
     def entry_point(self, value, delta_t):
+        from rpython.rlib.rthread import get_ident
+        get_ident()             # register thread_ident for win32
         code = self.MyCode('py:code:52:test_enable')
         rvmprof.register_code(code, self.MyCode.get_name)
         fd = os.open(self.tmpfilename, os.O_WRONLY | os.O_CREAT, 0666)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to