patch-js_src_jslock_cpp 738 B

1234567891011121314151617181920
  1. $OpenBSD: patch-js_src_jslock_cpp,v 1.1 2013/12/09 16:31:59 landry Exp $
  2. Fix for infinite loop in js binary during build
  3. cf pkgsrc/devel/xulrunner/patches/patch-bb
  4. http://lists.freebsd.org/pipermail/freebsd-gecko/2010-January/000640.html
  5. https://bugzilla.mozilla.org/show_bug.cgi?id=550271
  6. --- js/src/jslock.cpp.orig Sat Apr 24 16:47:57 2010
  7. +++ js/src/jslock.cpp Sat Apr 24 16:52:44 2010
  8. @@ -161,7 +161,11 @@ NativeCompareAndSwap(jsword *w, jsword ov, jsword nv)
  9. __asm__ __volatile__ (
  10. "stbar\n"
  11. +#if defined (__sparc64__)
  12. + "casx [%1],%2,%3\n"
  13. +#else
  14. "cas [%1],%2,%3\n"
  15. +#endif
  16. "cmp %2,%3\n"
  17. "be,a 1f\n"
  18. "mov 1,%0\n"