summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2017-04-19 15:44:20 -0700
committerJosh Gao <jmgao@google.com>2017-04-19 18:18:16 -0700
commit9a2eea3e6fe2dce60935f312b6a32d25a9ed2187 (patch)
tree17aa7f5238d880cb0f27c9cca6a89c19a596f950 /compiler/optimizing/graph_visualizer.cc
parent6c99499c8a3bad181847d6bdfe28dae06e09477b (diff)
base: make SafeCopy work on older Linux kernels.
process_vm_readv is documented to not split transfer across a single iovec element, but this appears to not be the case for the newer kernels we have on our workstations. Split up transfers across page boundaries, to avoid this. This has the side effect of limiting the maximum size of a transfer, but 64 pages ought to be enough for anybody. Test: safe_copy_test on 3.13.0-101-generic (failing before) Test: safe_copy_test on 4.4.0-66-generic (still passing) Change-Id: I6a6dbf0cd2aeaa7eab39f6d41285d46ebd760e30
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions