6c30e74dd0
To work around skia:8709, I'm moving the DDL tests to IntelIris640. The ASAN jobs still show memory leaks in the driver, but at least I can identify which calls are leaking and suppress the LSAN warnings. Adds an SK_ENABLE_SCOPED_LSAN_SUPPRESSIONS define that indicates that the LSAN header files are available, which is set in recipes for the Linux ASAN builds. Adds __lsan::ScopedDisabler in four locations for two Vulkan API calls: - CreateGraphicsPipelines in GrVkPipeline::Create and GrVkCopyPipeline::Create - CreateDescriptorSetLayout in GrVkDescriptorSetManager::DescriptorPoolManager::DescriptorPoolManager constructor (2 calls) Also adds a regular suppression for libxcb.so. See bugs listed below for more details on the leaks. Bug: skia:8710, skia:8712, skia:8713 Change-Id: I55c6e5d483b4aeed5cd44c64219539ca7214187f Reviewed-on: https://skia-review.googlesource.com/c/184071 Commit-Queue: Ben Wagner <benjaminwagner@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com> Auto-Submit: Ben Wagner <benjaminwagner@google.com>
31 lines
788 B
C++
31 lines
788 B
C++
/*
|
|
* Copyright 2016 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#include "SkTypes.h"
|
|
|
|
#if !defined(__has_feature)
|
|
#define __has_feature(x) 0
|
|
#endif
|
|
|
|
#if __has_feature(address_sanitizer)
|
|
|
|
extern "C" {
|
|
|
|
const char* __lsan_default_suppressions();
|
|
const char* __lsan_default_suppressions() {
|
|
return "leak:libfontconfig\n" // FontConfig looks like it leaks, but it doesn't.
|
|
"leak:libGLX_nvidia.so\n" // For NVidia driver.
|
|
"leak:libnvidia-glcore.so\n" // For NVidia driver.
|
|
"leak:libnvidia-tls.so\n" // For NVidia driver.
|
|
"leak:libxcb.so\n" // For Mesa Intel driver. skia:8710
|
|
;
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|