Convince tsan that the card table isn't a problem.
Also move the #include <sys/mman.h> into "mem_map.h", since it's
currently not possible to make any use of the latter without the
former. If we care about the pollution, we should offer our own
constants as part of our API.
Change-Id: I01ec451d23c1d8afb8cb8a6660af8d9723faf5f5
diff --git a/src/card_table.h b/src/card_table.h
index 9cfa70b..0d5178e 100644
--- a/src/card_table.h
+++ b/src/card_table.h
@@ -71,10 +71,9 @@
// Resets all of the bytes in the card table to clean.
void ClearNonImageSpaceCards(Heap* heap);
- private:
- CardTable(MemMap* begin, byte* biased_begin, size_t offset) :
- mem_map_(begin), biased_begin_(biased_begin), offset_(offset) {}
+ private:
+ CardTable(MemMap* begin, byte* biased_begin, size_t offset);
// Returns the address of the relevant byte in the card table, given an address on the heap.
byte* CardFromAddr(const void *addr) const {