Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Unified Diff: nss/mozilla/security/nss/lib/pk11wrap/debug_module.c

Issue 3135002: Update to NSS 3.12.7 and NSPR 4.8.6.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: nss/mozilla/security/nss/lib/pk11wrap/debug_module.c
===================================================================
--- nss/mozilla/security/nss/lib/pk11wrap/debug_module.c (revision 55475)
+++ nss/mozilla/security/nss/lib/pk11wrap/debug_module.c (working copy)
@@ -902,12 +902,12 @@
ival = end-start;
/* sigh, lie to PRAtomic add and say we are using signed values */
- PR_AtomicAdd((PRInt32 *)&nssdbg_prof_data[fun_number].time, (PRInt32)ival);
+ PR_ATOMIC_ADD((PRInt32 *)&nssdbg_prof_data[fun_number].time, (PRInt32)ival);
}
static void nssdbg_start_time(PRInt32 fun_number, PRIntervalTime *start)
{
- PR_AtomicIncrement((PRInt32 *)&nssdbg_prof_data[fun_number].calls);
+ PR_ATOMIC_INCREMENT((PRInt32 *)&nssdbg_prof_data[fun_number].calls);
*start = PR_IntervalNow();
}
@@ -1212,7 +1212,7 @@
{
COMMON_DEFINITIONS;
- PR_AtomicIncrement((PRInt32 *)&numOpenSessions);
+ PR_ATOMIC_INCREMENT((PRInt32 *)&numOpenSessions);
maxOpenSessions = PR_MAX(numOpenSessions, maxOpenSessions);
PR_LOG(modlog, 1, ("C_OpenSession"));
PR_LOG(modlog, 3, (fmt_slotID, slotID));
@@ -1238,7 +1238,7 @@
{
COMMON_DEFINITIONS;
- PR_AtomicDecrement((PRInt32 *)&numOpenSessions);
+ PR_ATOMIC_DECREMENT((PRInt32 *)&numOpenSessions);
PR_LOG(modlog, 1, ("C_CloseSession"));
log_handle(3, fmt_hSession, hSession);
nssdbg_start_time(FUNC_C_CLOSESESSION,&start);

Powered by Google App Engine
This is Rietveld 408576698