Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement views, which are essentially bankdevs integrated into the
memory map system. [O. Galibert]
- Loading branch information
Showing
21 changed files
with
3,328 additions
and
1,601 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
574daf4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This blows up allocating a very large temporary on the stack. The issue is this code in GNU libstdc++ (from include/c++/9.3.0/bits/stl_uninitialized.h):
Note that it stacks a temporary
_ValueType
for the call tostd::fill_n
. It’s not calling the default constructor in-place, it’s filling with multiple copies of one default-constructed object.This gets called when default-appending to a
std::vector
under certain circumstances. When thehandler_entry_read_dsipatch
constructor callsm_dispatch_array.resize(1)
this ends up being called with a very large_ValueType
and exceeds the maximum stack frame size.574daf4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at it a bit more, it only uses this form if the value is trivially constructible, which is true for a
std::array
of pointers. It might be possible to work around.