Find out how to compile sigsegv
This commit is contained in:
@@ -2,8 +2,7 @@ binrule(
|
||||
name="test",
|
||||
sources=["memory_manager_unit.cc"],
|
||||
headers=lglob("*.h"),
|
||||
cflags="-I../tpie",
|
||||
linkables=["libsigsegv.a",
|
||||
"fastlib:fastlib",
|
||||
cflags="-I../tpie -Lsigsegv",
|
||||
linkables=["fastlib:fastlib",
|
||||
"u/nvasil/tpie:tpie"]
|
||||
);
|
||||
|
||||
@@ -112,7 +112,8 @@ class MemoryManager {
|
||||
}
|
||||
template<typename ARRAYTYPE>
|
||||
void Copy(ARRAYTYPE other, index_t length) {
|
||||
T *p1=reinterpret_cast<T>(allocator_->Access(address_));
|
||||
T *p1=reinterpret_cast<T>(allocator_->Access(
|
||||
Ptr<T,logmode>::address_));
|
||||
T *p2=other.get();
|
||||
for(index_t i=0; i<length; i++) {
|
||||
p1[i] = p2[i];
|
||||
|
||||
@@ -71,7 +71,7 @@ void MEMORY_MANAGER__::Initialize() {
|
||||
// Block transfer engine Initializations
|
||||
MM_manager.ignore_memory_limit();
|
||||
AMI_err ae;
|
||||
disk_= new AMI_STREAM(cache_file_.c_str());
|
||||
disk_= new AMI_STREAM<Page_t>(cache_file_.c_str());
|
||||
for(index_t i=0; i< num_of_pages_; i++) {
|
||||
if ((ae=disk_.write_array((Page_t *)(cache_+i*page_size_),
|
||||
kTPIEPageSize/page_size_))!=AMI_ERROR_NO_ERROR) {
|
||||
|
||||
Reference in New Issue
Block a user