PageAlloc.cpp File Reference

Page Allocator Implementation -*- C++ -*-. More...

#include "Galois/Runtime/mm/Mem.h"
#include "Galois/Runtime/ll/gio.h"
#include "Galois/Runtime/ll/StaticInstance.h"
#include <sys/mman.h>
#include <map>
#include <vector>
#include <numeric>

Classes

struct  anonymous_namespace{PageAlloc.cpp}::FreeNode
struct  anonymous_namespace{PageAlloc.cpp}::PAState

Namespaces

namespace  anonymous_namespace{PageAlloc.cpp}

Defines

#define DoAllocLock   false

Typedefs

typedef
Galois::Runtime::LL::PtrLock
< FreeNode, true > 
anonymous_namespace{PageAlloc.cpp}::HeadPtr
typedef
Galois::Runtime::LL::CacheLineStorage
< HeadPtr > 
anonymous_namespace{PageAlloc.cpp}::HeadPtrStorage

Functions

void * anonymous_namespace{PageAlloc.cpp}::allocFromOS ()

Variables

static const int _PROT = PROT_READ | PROT_WRITE
static const int _MAP_BASE = MAP_ANONYMOUS | MAP_PRIVATE
static
Galois::Runtime::LL::StaticInstance
< PAState > 
anonymous_namespace{PageAlloc.cpp}::PA
static
Galois::Runtime::LL::SimpleLock
< DoAllocLock > 
anonymous_namespace{PageAlloc.cpp}::allocLock
static
Galois::Runtime::LL::SimpleLock
< true > 
anonymous_namespace{PageAlloc.cpp}::dataLock
static __thread HeadPtr * anonymous_namespace{PageAlloc.cpp}::head = 0

Detailed Description

Page Allocator Implementation -*- C++ -*-.

License

Galois, a framework to exploit amorphous data-parallelism in irregular programs.

Copyright (C) 2011, The University of Texas at Austin. All rights reserved. UNIVERSITY EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES CONCERNING THIS SOFTWARE AND DOCUMENTATION, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE, NON-INFRINGEMENT AND WARRANTIES OF PERFORMANCE, AND ANY WARRANTY THAT MIGHT OTHERWISE ARISE FROM COURSE OF DEALING OR USAGE OF TRADE. NO WARRANTY IS EITHER EXPRESS OR IMPLIED WITH RESPECT TO THE USE OF THE SOFTWARE OR DOCUMENTATION. Under no circumstances shall University be liable for incidental, special, indirect, direct or consequential damages or loss of profits, interruption of business, or related expenses which may arise from use of Software or Documentation, including but not limited to those resulting from defects in Software and/or Documentation, or loss or inaccuracy of data of any kind.

Description

Author:
Andrew Lenharth <andrewl@lenharth.org>

Define Documentation

#define DoAllocLock   false

Variable Documentation

const int _MAP_BASE = MAP_ANONYMOUS | MAP_PRIVATE [static]
const int _PROT = PROT_READ | PROT_WRITE [static]

Generated on 2 Nov 2013 for Galois by  doxygen 1.6.1