Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: sky/engine/wtf/LeakAnnotations.h

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/wtf/IntegralTypedArrayBase.h ('k') | sky/engine/wtf/LinkedHashSet.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 29 matching lines...) Expand all
40 // 40 //
41 // WTF_ANNOTATE_SCOPED_MEMORY_LEAK: all allocations made in the current scope 41 // WTF_ANNOTATE_SCOPED_MEMORY_LEAK: all allocations made in the current scope
42 // will be annotated as leaks. 42 // will be annotated as leaks.
43 // WTF_ANNOTATE_LEAKING_OBJECT_PTR(X): the heap object referenced by pointer X 43 // WTF_ANNOTATE_LEAKING_OBJECT_PTR(X): the heap object referenced by pointer X
44 // will be annotated as a leak. 44 // will be annotated as a leak.
45 // 45 //
46 // Note that HeapChecker will report a fatal error if an object which has been 46 // Note that HeapChecker will report a fatal error if an object which has been
47 // annotated with ANNOTATE_LEAKING_OBJECT_PTR is later deleted (but 47 // annotated with ANNOTATE_LEAKING_OBJECT_PTR is later deleted (but
48 // LeakSanitizer won't). 48 // LeakSanitizer won't).
49 49
50 #include "wtf/Noncopyable.h" 50 #include "sky/engine/wtf/Noncopyable.h"
51 51
52 namespace WTF { 52 namespace WTF {
53 53
54 #if USE(LEAK_SANITIZER) 54 #if USE(LEAK_SANITIZER)
55 extern "C" { 55 extern "C" {
56 void __lsan_disable(); 56 void __lsan_disable();
57 void __lsan_enable(); 57 void __lsan_enable();
58 void __lsan_ignore_object(const void *p); 58 void __lsan_ignore_object(const void *p);
59 } // extern "C" 59 } // extern "C"
60 60
(...skipping 21 matching lines...) Expand all
82 82
83 // If Leak Sanitizer is not being used, the annotations should be no-ops. 83 // If Leak Sanitizer is not being used, the annotations should be no-ops.
84 #define WTF_ANNOTATE_SCOPED_MEMORY_LEAK 84 #define WTF_ANNOTATE_SCOPED_MEMORY_LEAK
85 #define WTF_ANNOTATE_LEAKING_OBJECT_PTR(X) 85 #define WTF_ANNOTATE_LEAKING_OBJECT_PTR(X)
86 86
87 #endif // USE(LEAK_SANITIZER) 87 #endif // USE(LEAK_SANITIZER)
88 88
89 } // namespace WTF 89 } // namespace WTF
90 90
91 #endif // WTF_LeakAnnotations_h 91 #endif // WTF_LeakAnnotations_h
OLDNEW
« no previous file with comments | « sky/engine/wtf/IntegralTypedArrayBase.h ('k') | sky/engine/wtf/LinkedHashSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698