From dfbc18b0432661d5cb94dc6cc2f4b8947dc61136 Mon Sep 17 00:00:00 2001 From: "bjorn%netscape.com" Date: Tue, 29 Sep 1998 22:42:08 +0000 Subject: [PATCH] Changed the assertion which used to trigger when nv < 0 in CompareAndSwap. It now triggers when nv == -1. This is only relevant on a Solaris compiled for SPARC v8. --- js/src/jslock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/jslock.c b/js/src/jslock.c index 654e5162ec6..29d8d16da69 100644 --- a/js/src/jslock.c +++ b/js/src/jslock.c @@ -100,7 +100,7 @@ js_CompareAndSwap(prword *w, prword ov, prword nv) #if defined(__GNUC__) unsigned int res; #ifndef ULTRA_SPARC - PR_ASSERT(nv >= 0); + PR_ASSERT(nv != -1); asm volatile (" swap [%1],%4 1: tst %4 @@ -132,7 +132,7 @@ mov 0,%0 #else /* !__GNUC__ */ extern int compare_and_swap(prword*,prword,prword); #ifndef ULTRA_SPARC - PR_ASSERT(nv >= 0); + PR_ASSERT(nv != -1); #else PR_ASSERT(ov != nv); #endif