[pypy-commit] pypy win64-stage1: boehm on win64 without __asm, of course :-)

ctismer noreply at buildbot.pypy.org
Thu Nov 24 22:51:54 CET 2011


Author: Christian Tismer <tismer at stackless.com>
Branch: win64-stage1
Changeset: r49759:1021c954f50d
Date: 2011-11-24 22:39 +0100
http://bitbucket.org/pypy/pypy/changeset/1021c954f50d/

Log:	boehm on win64 without __asm, of course :-)

diff --git a/pypy/translator/c/src/mem.h b/pypy/translator/c/src/mem.h
--- a/pypy/translator/c/src/mem.h
+++ b/pypy/translator/c/src/mem.h
@@ -73,7 +73,13 @@
 
 #define pypy_asm_gc_nocollect(f) "/* GC_NOCOLLECT " #f " */"
 
-#define pypy_asm_keepalive(v)    __asm { }
+#ifndef _WIN64
+#  define pypy_asm_keepalive(v)    __asm { }
+#else
+   /* is there soething cheaper? */
+#  define pypy_asm_keepalive(v)    _ReadWriteBarrier();
+#endif
+
 static __declspec(noinline) void pypy_asm_stack_bottom() { }
 
 #define OP_GC_ASMGCROOT_STATIC(i, r)   r =      \


More information about the pypy-commit mailing list