• Ian Lance Taylor's avatar
    runtime: use new CNT_MASK in lfstack · e65c0a82
    Ian Lance Taylor authored
    This is for SPARC64, a 64-bit processor that uses all 64-bits
    of virtual addresses.  The idea is to use the low order 3 bits
    to at least get a small ABA counter.  That should work since
    pointers are aligned.  The idea is for SPARC64 to set CNT_MASK
    == 7, PTR_BITS == 0, PTR_MASK == 0xffffffffffffff8.
    
    Also add uintptr casts to avoid GCC warnings.  The gccgo
    runtime code is compiled with GCC, and GCC warns when casting
    between a pointer and a type of a different size.
    
    R=dvyukov
    CC=golang-dev
    https://golang.org/cl/7225043
    e65c0a82
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...