Skip to content

Commit 5aa4b0d

Browse files
committed
preflight script formatting changes
1 parent 22188a6 commit 5aa4b0d

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

cpp/src/plasma/malloc.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,4 @@ void get_malloc_mapinfo(void* addr, int* fd, int64_t* map_size, ptrdiff_t* offse
195195
*offset = 0;
196196
}
197197

198-
void set_malloc_granularity(int value) {
199-
change_mparam(M_GRANULARITY, value);
200-
}
198+
void set_malloc_granularity(int value) { change_mparam(M_GRANULARITY, value); }

cpp/src/plasma/store.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ int main(int argc, char* argv[]) {
765765
"pass an argument with the flag '--shm-size' to 'docker run'.";
766766
}
767767
} else {
768-
set_malloc_granularity(1024 * 1024 * 1024); // 1 GB
768+
set_malloc_granularity(1024 * 1024 * 1024); // 1 GB
769769
}
770770
#endif
771771
// Make it so dlmalloc fails if we try to request more memory than is

cpp/src/plasma/store.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
#define PLASMA_STORE_H
2020

2121
#include <deque>
22-
#include <vector>
2322
#include <string>
23+
#include <vector>
2424

2525
#include "plasma/common.h"
2626
#include "plasma/events.h"

python/pyarrow/io.pxi

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,15 +543,18 @@ cdef class FixedSizeBufferOutputStream(NativeFile):
543543
self.is_open = True
544544

545545
def set_memcopy_threads(self, int num_threads):
546-
cdef CFixedSizeBufferWriter* writer = <CFixedSizeBufferWriter*> self.wr_file.get()
546+
cdef CFixedSizeBufferWriter* writer = \
547+
<CFixedSizeBufferWriter*> self.wr_file.get()
547548
writer.set_memcopy_threads(num_threads)
548549

549550
def set_memcopy_blocksize(self, int64_t blocksize):
550-
cdef CFixedSizeBufferWriter* writer = <CFixedSizeBufferWriter*> self.wr_file.get()
551+
cdef CFixedSizeBufferWriter* writer = \
552+
<CFixedSizeBufferWriter*> self.wr_file.get()
551553
writer.set_memcopy_blocksize(blocksize)
552554

553555
def set_memcopy_threshold(self, int64_t threshold):
554-
cdef CFixedSizeBufferWriter* writer = <CFixedSizeBufferWriter*> self.wr_file.get()
556+
cdef CFixedSizeBufferWriter* writer = \
557+
<CFixedSizeBufferWriter*> self.wr_file.get()
555558
writer.set_memcopy_threshold(threshold)
556559

557560

0 commit comments

Comments
 (0)