summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-11-01 21:38:14 +0000
committerRui Ueyama <ruiu@google.com>2017-11-01 21:38:14 +0000
commita16fe65b724538eb346322ec7aa88ac029881907 (patch)
tree660bda4865d86114fd05ac0ba706b02443b3f902 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
parent9288938561af7cb9ad18df553728ee01d31d2e37 (diff)
downloadbcm5719-llvm-a16fe65b724538eb346322ec7aa88ac029881907.tar.gz
bcm5719-llvm-a16fe65b724538eb346322ec7aa88ac029881907.zip
Rewrite FileOutputBuffer as two separate classes.
This patch is to rewrite FileOutputBuffer as two separate classes; one for file-backed output buffer and the other for memory-backed output buffer. I think the new code is easier to follow because two different implementations are now actually separated as different classes. Unlike the previous implementation, the class that does not replace the final output file using rename(2) does not create a temporary file at all. Instead, it allocates memory using mmap(2) and use it. I think this is an improvement because it is now guaranteed that the temporary memory region doesn't trigger any I/O and there's now zero chance to leave a temporary file behind. Also, it shouldn't impose new restrictions because were using mmap IO too. Differential Revision: https://reviews.llvm.org/D39449 llvm-svn: 317127
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud