mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0030994: Test cases of group sat/read_parallel_1/_2 are crashed with exception
Revert changes by #30518
This commit is contained in:
parent
8c186dad9b
commit
92686513a2
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
#include <NCollection_BaseMap.hxx>
|
#include <NCollection_BaseMap.hxx>
|
||||||
#include <TCollection.hxx>
|
#include <TCollection.hxx>
|
||||||
#include <Standard_Assert.hxx>
|
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : BeginResize
|
//function : BeginResize
|
||||||
@ -32,8 +31,13 @@ Standard_Boolean NCollection_BaseMap::BeginResize
|
|||||||
{
|
{
|
||||||
// get next size for the buckets array
|
// get next size for the buckets array
|
||||||
N = NextPrimeForMap(NbBuckets);
|
N = NextPrimeForMap(NbBuckets);
|
||||||
Standard_ASSERT (N > NbBuckets, "NextPrimeForMap failed to return valid number", return Standard_False);
|
if (N <= myNbBuckets)
|
||||||
|
{
|
||||||
|
if (!myData1)
|
||||||
|
N = myNbBuckets;
|
||||||
|
else
|
||||||
|
return Standard_False;
|
||||||
|
}
|
||||||
data1 = (NCollection_ListNode **)
|
data1 = (NCollection_ListNode **)
|
||||||
myAllocator->Allocate((N+1)*sizeof(NCollection_ListNode *));
|
myAllocator->Allocate((N+1)*sizeof(NCollection_ListNode *));
|
||||||
memset(data1, 0, (N+1)*sizeof(NCollection_ListNode *));
|
memset(data1, 0, (N+1)*sizeof(NCollection_ListNode *));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user