1197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch// Copyright 2014 The Chromium Authors. All rights reserved.
2197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch// Use of this source code is governed by a BSD-style license that can be
3197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch// found in the LICENSE file.
4197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
5197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch#ifndef WTF_AddressSpaceRandomization_h
6197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch#define WTF_AddressSpaceRandomization_h
7197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
8197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch#include "wtf/WTFExport.h"
9197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
10197021e6b966cfb06891637935ef33fff06433d1Ben Murdochnamespace WTF {
11197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
12197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch// Calculates a random preferred mapping address. In calculating an
13197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch// address, we balance good ASLR against not fragmenting the address
14197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch// space too badly.
15197021e6b966cfb06891637935ef33fff06433d1Ben MurdochWTF_EXPORT void* getRandomPageBase();
16197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
17197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch}
18197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch
19197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch#endif
20