* fileread.cc (File_read::clear_views): Don't delete the whole
file view.
This commit is contained in:
parent
9f6db0d3fd
commit
a19fefdc57
@ -1,3 +1,8 @@
|
|||||||
|
2011-03-09 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
|
* fileread.cc (File_read::clear_views): Don't delete the whole
|
||||||
|
file view.
|
||||||
|
|
||||||
2011-03-08 Ian Lance Taylor <iant@google.com>
|
2011-03-08 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
PR gold/12525
|
PR gold/12525
|
||||||
|
@ -717,7 +717,9 @@ File_read::clear_views(Clear_views_mode mode)
|
|||||||
should_delete = false;
|
should_delete = false;
|
||||||
else if (mode == CLEAR_VIEWS_ALL)
|
else if (mode == CLEAR_VIEWS_ALL)
|
||||||
should_delete = true;
|
should_delete = true;
|
||||||
else if (p->second->should_cache() && keep_files_mapped)
|
else if ((p->second->should_cache()
|
||||||
|
|| p->second == this->whole_file_view_)
|
||||||
|
&& keep_files_mapped)
|
||||||
should_delete = false;
|
should_delete = false;
|
||||||
else if (this->object_count_ > 1
|
else if (this->object_count_ > 1
|
||||||
&& p->second->accessed()
|
&& p->second->accessed()
|
||||||
|
Loading…
Reference in New Issue
Block a user