OSDN Git Service
(root)
/
android-x86
/
art.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ddaa25
)
Revert "Revert "Ignore warning for instantiation after specialization.""
author
Stephen Hines
<srhines@google.com>
Thu, 26 Jan 2017 08:50:31 +0000
(
00:50
-0800)
committer
Stephen Hines
<srhines@google.com>
Thu, 26 Jan 2017 08:50:31 +0000
(
00:50
-0800)
This reverts commit
ee7a1c5d327e132c923cd45b5b2de091204f07dd
.
Bug: http://b/
31532493
Test: Manual validation
runtime/base/arena_allocator.cc
patch
|
blob
|
history
diff --git
a/runtime/base/arena_allocator.cc
b/runtime/base/arena_allocator.cc
index
61e0aab
..
1caf0c0
100644
(file)
--- a/
runtime/base/arena_allocator.cc
+++ b/
runtime/base/arena_allocator.cc
@@
-144,8
+144,11
@@
void ArenaAllocatorStatsImpl<kCount>::Dump(std::ostream& os, const Arena* first,
}
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Winstantiation-after-specialization"
// Explicitly instantiate the used implementation.
template class ArenaAllocatorStatsImpl<kArenaAllocatorCountAllocations>;
+#pragma GCC diagnostic pop
void ArenaAllocatorMemoryTool::DoMakeDefined(void* ptr, size_t size) {
MEMORY_TOOL_MAKE_DEFINED(ptr, size);