Permalink
Browse files

JSBigString to MAP_PRIVATE not MAP_SHARED

Reviewed By: mhorowitz

Differential Revision: D6613463

fbshipit-source-id: 2553a0475ade061f3b70ffce90fcf4e0ceb7d9fa
  • Loading branch information...
Peter Ammon authored and facebook-github-bot committed Dec 20, 2017
1 parent 9b147a5 commit f9f40cd3e486314cd75bda8722147f2f0f5b8fe1
Showing with 2 additions and 1 deletion.
  1. +2 −1 ReactCommon/cxxreact/JSBigString.h
@@ -146,7 +146,8 @@ class RN_EXPORT JSBigFileString : public JSBigString {
const char *c_str() const override {
if (!m_data) {
m_data = (const char *)mmap(0, m_size, PROT_READ, MAP_SHARED, m_fd, m_mapOff);
m_data =
(const char *)mmap(0, m_size, PROT_READ, MAP_PRIVATE, m_fd, m_mapOff);
CHECK(m_data != MAP_FAILED)
<< " fd: " << m_fd
<< " size: " << m_size

0 comments on commit f9f40cd

Please sign in to comment.