[gofrontend] push by i...@golang.org - runtime: Support Solaris AMD64 in lfstack.... on 2013-02-20 19:41 GMT

2 views
Skip to first unread message

gofro...@googlecode.com

unread,
Feb 20, 2013, 2:41:20 PM2/20/13
to gofront...@googlegroups.com
Revision: 3b1c3cceaf02
Branch: default
Author: Janne Snabb <sn...@epipe.com>
Date: Wed Feb 20 11:41:05 2013
Log: runtime: Support Solaris AMD64 in lfstack.
The address space layout is similar on SPARC64 and AMD64 when
running Solaris.

R=gofrontend-dev, iant
CC=gofrontend-dev
https://codereview.appspot.com/7307127

Committer: Ian Lance Taylor <ia...@golang.org>
http://code.google.com/p/gofrontend/source/detail?r=3b1c3cceaf02

Modified:
/libgo/runtime/lfstack.c

=======================================
--- /libgo/runtime/lfstack.c Tue Jan 29 05:57:54 2013
+++ /libgo/runtime/lfstack.c Wed Feb 20 11:41:05 2013
@@ -17,9 +17,10 @@
#define PTR_MASK ((1ull<<PTR_BITS)-1)
#define CNT_MASK (0ull-1)

-#if __SIZEOF_POINTER__ == 8 && defined(__sparc__)
-// SPARC64 uses all 64 bits of virtual addresses. Use low-order three
-// bits as ABA counter.
+#if __SIZEOF_POINTER__ == 8 && (defined(__sparc__) || (defined(__sun__) &&
defined(__amd64__)))
+// SPARC64 and Solaris on AMD64 uses all 64 bits of virtual addresses.
+// Use low-order three bits as ABA counter.
+//
http://docs.oracle.com/cd/E19120-01/open.solaris/816-5138/6mba6ua5p/index.html
#undef PTR_BITS
#undef CNT_MASK
#undef PTR_MASK
Reply all
Reply to author
Forward
0 new messages