Commit b3aee940 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Mark std::list as not relocatable

Summary:
[Folly] Mark `std::list` as not relocatable.

From the github issue (facebook/folly#889), `std::list` allocated storage may hold back-pointers to the owning `std::list` object in both libstdc++ and libc++.

The relocatability marking dates to 2011 or earlier; perhaps it applied then.

Closes #889.

Reviewed By: nbronson

Differential Revision: D9043357

fbshipit-source-id: bf954e74f36f554bfbb2e5bb5ac40b933a749003
parent 28f37dc5
...@@ -589,10 +589,6 @@ template <class T, class A> ...@@ -589,10 +589,6 @@ template <class T, class A>
class vector; class vector;
template <class T, class A> template <class T, class A>
class deque; class deque;
FOLLY_GLIBCXX_NAMESPACE_CXX11_BEGIN
template <class T, class A>
class list;
FOLLY_GLIBCXX_NAMESPACE_CXX11_END
template <class T, class C, class A> template <class T, class C, class A>
class set; class set;
template <class K, class V, class C, class A> template <class K, class V, class C, class A>
...@@ -709,7 +705,6 @@ bool greater_than(LHS const lhs) { ...@@ -709,7 +705,6 @@ bool greater_than(LHS const lhs) {
FOLLY_ASSUME_FBVECTOR_COMPATIBLE_3(std::basic_string) FOLLY_ASSUME_FBVECTOR_COMPATIBLE_3(std::basic_string)
#endif #endif
FOLLY_ASSUME_FBVECTOR_COMPATIBLE_2(std::vector) FOLLY_ASSUME_FBVECTOR_COMPATIBLE_2(std::vector)
FOLLY_ASSUME_FBVECTOR_COMPATIBLE_2(std::list)
FOLLY_ASSUME_FBVECTOR_COMPATIBLE_2(std::deque) FOLLY_ASSUME_FBVECTOR_COMPATIBLE_2(std::deque)
FOLLY_ASSUME_FBVECTOR_COMPATIBLE_2(std::unique_ptr) FOLLY_ASSUME_FBVECTOR_COMPATIBLE_2(std::unique_ptr)
FOLLY_ASSUME_FBVECTOR_COMPATIBLE_1(std::shared_ptr) FOLLY_ASSUME_FBVECTOR_COMPATIBLE_1(std::shared_ptr)
......
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