Loading include/binder/MemoryDealer.h +3 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,9 @@ public: virtual void deallocate(size_t offset); virtual void dump(const char* what) const; // allocations are aligned to some value. return that value so clients can account for it. static size_t getAllocationAlignment(); sp<IMemoryHeap> getMemoryHeap() const { return heap(); } protected: Loading libs/binder/MemoryDealer.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,8 @@ public: void dump(const char* what) const; void dump(String8& res, const char* what) const; static size_t getAllocationAlignment() { return kMemoryAlign; } private: struct chunk_t { Loading Loading @@ -264,6 +266,12 @@ SimpleBestFitAllocator* MemoryDealer::allocator() const { return mAllocator; } // static size_t MemoryDealer::getAllocationAlignment() { return SimpleBestFitAllocator::getAllocationAlignment(); } // ---------------------------------------------------------------------------- // align all the memory blocks on a cache-line boundary Loading Loading
include/binder/MemoryDealer.h +3 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,9 @@ public: virtual void deallocate(size_t offset); virtual void dump(const char* what) const; // allocations are aligned to some value. return that value so clients can account for it. static size_t getAllocationAlignment(); sp<IMemoryHeap> getMemoryHeap() const { return heap(); } protected: Loading
libs/binder/MemoryDealer.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,8 @@ public: void dump(const char* what) const; void dump(String8& res, const char* what) const; static size_t getAllocationAlignment() { return kMemoryAlign; } private: struct chunk_t { Loading Loading @@ -264,6 +266,12 @@ SimpleBestFitAllocator* MemoryDealer::allocator() const { return mAllocator; } // static size_t MemoryDealer::getAllocationAlignment() { return SimpleBestFitAllocator::getAllocationAlignment(); } // ---------------------------------------------------------------------------- // align all the memory blocks on a cache-line boundary Loading