Home | History | Annotate | Download | only in partition_allocator
      1 // Copyright 2014 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef BASE_ALLOCATOR_PARTITION_ALLOCATOR_ADDRESS_SPACE_RANDOMIZATION
      6 #define BASE_ALLOCATOR_PARTITION_ALLOCATOR_ADDRESS_SPACE_RANDOMIZATION
      7 
      8 namespace pdfium {
      9 namespace base {
     10 
     11 // Calculates a random preferred mapping address. In calculating an address, we
     12 // balance good ASLR against not fragmenting the address space too badly.
     13 void* GetRandomPageBase();
     14 
     15 }  // namespace base
     16 }  // namespace pdfium
     17 
     18 #endif  // BASE_ALLOCATOR_PARTITION_ALLOCATOR_ADDRESS_SPACE_RANDOMIZATION
     19