diff --git a/inference-engine/src/mkldnn_plugin/mkldnn_weights_cache.cpp b/inference-engine/src/mkldnn_plugin/mkldnn_weights_cache.cpp index ac96caa6073..967d0e49a03 100644 --- a/inference-engine/src/mkldnn_plugin/mkldnn_weights_cache.cpp +++ b/inference-engine/src/mkldnn_plugin/mkldnn_weights_cache.cpp @@ -43,7 +43,8 @@ MKLDNNWeightsSharing::MKLDNNSharedMemory::Ptr MKLDNNWeightsSharing::findOrCreate MKLDNNMemoryPtr newPtr; if (found == sharedWeights.end() - || !((ptr = found->second) && (newPtr = ptr->sharedMemory.lock()))) { + || !(ptr = found->second) + || ptr->sharedMemory.expired()) { newPtr = create(); ptr = std::make_shared(newPtr, valid); sharedWeights[key] = ptr; @@ -59,15 +60,15 @@ MKLDNNWeightsSharing::MKLDNNSharedMemory::Ptr MKLDNNWeightsSharing::get(const st auto found = sharedWeights.find(key); MKLDNNMemoryInfo::Ptr ptr; - MKLDNNMemoryPtr newPtr; if (found == sharedWeights.end() - || !((ptr = found->second) && (newPtr = ptr->sharedMemory.lock()))) + || !(ptr = found->second) + || ptr->sharedMemory.expired()) IE_THROW() << "Unknown shared memory with key " << key; return std::make_shared(ptr->valid ? std::unique_lock(ptr->guard, std::defer_lock) - : std::unique_lock(ptr->guard), ptr, newPtr); + : std::unique_lock(ptr->guard), ptr); } NumaNodesWeights::NumaNodesWeights() { diff --git a/inference-engine/tests/functional/plugin/cpu/shared_tests_instances/skip_tests_config.cpp b/inference-engine/tests/functional/plugin/cpu/shared_tests_instances/skip_tests_config.cpp index 18ca8b7cf73..613e0566762 100644 --- a/inference-engine/tests/functional/plugin/cpu/shared_tests_instances/skip_tests_config.cpp +++ b/inference-engine/tests/functional/plugin/cpu/shared_tests_instances/skip_tests_config.cpp @@ -52,6 +52,9 @@ std::vector disabledTestPatterns() { R"(.*BinaryConvolutionLayerTest.*)", R"(.*ClampLayerTest.*netPrc=(I64|I32).*)", R"(.*ClampLayerTest.*netPrc=U64.*)", + // TODO: 42538. Unexpected application crash + R"(.*CoreThreadingTestsWithIterations\.smoke_LoadNetwork.t.*)", + R"(.*CoreThreadingTestsWithIterations\.smoke_LoadNetworkAccuracy.*AUTO.*)", // TODO: 53618. BF16 gemm ncsp convolution crash R"(.*_GroupConv.*_inPRC=BF16.*_inFmts=nc.*_primitive=jit_gemm.*)", // TODO: 53578. fork DW bf16 convolution does not support 3d cases yet