Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 5492baf

Browse files
committed
Testing removing the asserts from the lock calls.
1 parent 8621fe0 commit 5492baf

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/corefx/System.Globalization.Native/collation.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ typedef struct _sort_handle
3737

3838
_sort_handle() : regular(nullptr)
3939
{
40-
int result = pthread_mutex_init(&collatorsLockObject, NULL);
41-
if (result != 0)
42-
{
43-
assert(false && "Unexpected pthread_mutex_init return value.");
44-
}
40+
pthread_mutex_init(&collatorsLockObject, NULL);
4541
}
4642

4743
} SortHandle;
@@ -292,11 +288,7 @@ const UCollator* GetCollatorFromSortHandle(SortHandle* pSortHandle, int32_t opti
292288
}
293289
else
294290
{
295-
int lockResult = pthread_mutex_lock(&pSortHandle->collatorsLockObject);
296-
if (lockResult != 0)
297-
{
298-
assert(false && "Unexpected pthread_mutex_lock return value.");
299-
}
291+
pthread_mutex_lock(&pSortHandle->collatorsLockObject);
300292

301293
TCollatorMap::iterator entry = pSortHandle->collatorsPerOption.find(options);
302294
if (entry == pSortHandle->collatorsPerOption.end())

0 commit comments

Comments
 (0)