Commit dcfbbe7d authored by Michael Lippautz's avatar Michael Lippautz Committed by Chromium LUCI CQ

heap: Fix Persistent location in debug modes

Change-Id: I0aa90b20eb0a5346b9f2ba028a797a9600a27120
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2631272Reviewed-by: default avatarOmer Katz <omerkatz@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#844059}
parent 58ee63f4
...@@ -39,19 +39,11 @@ class PersistentLocation final { ...@@ -39,19 +39,11 @@ class PersistentLocation final {
base::Location location_; base::Location location_;
}; };
#if !BUILDFLAG(FROM_HERE_USES_LOCATION_BUILTINS) && \ #if BUILDFLAG(RAW_HEAP_SNAPSHOTS)
BUILDFLAG(RAW_HEAP_SNAPSHOTS) #define PERSISTENT_FROM_HERE PersistentLocation(base::Location::Current())
#if !BUILDFLAG(ENABLE_LOCATION_SOURCE) #else // !RAW_HEAP_SNAPSHOTS
#define PERSISTENT_FROM_HERE \
PersistentLocation(::base::Location::CreateFromHere(__FILE__))
#else
#define PERSISTENT_FROM_HERE \
PersistentLocation( \
::base::Location::CreateFromHere(__func__, __FILE__, __LINE__))
#endif
#else
#define PERSISTENT_FROM_HERE PersistentLocation() #define PERSISTENT_FROM_HERE PersistentLocation()
#endif // BUILDFLAG(RAW_HEAP_SNAPSHOTS) #endif // !RAW_HEAP_SNAPSHOTS
template <typename T, template <typename T,
WeaknessPersistentConfiguration weaknessConfiguration, WeaknessPersistentConfiguration weaknessConfiguration,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment