actually remove memory.h; include cleanups

This commit is contained in:
Jon Morton 2012-04-03 04:37:00 -05:00 committed by Brian Anderson
parent 632a4c9326
commit 386069f39e
6 changed files with 4 additions and 21 deletions

View file

@ -1,9 +0,0 @@
// -*- c++ -*-
#ifndef MEMORY_H
#define MEMORY_H
#include "rust_task.h"
#endif /* MEMORY_H */

View file

@ -89,17 +89,13 @@ public:
template <typename T> struct kernel_owned {
inline void *operator new(size_t size, rust_kernel *kernel,
const char *tag);
const char *tag) {
return kernel->malloc(size, tag);
}
void operator delete(void *ptr) {
((T *)ptr)->kernel->free(ptr);
}
};
template <typename T>
inline void *kernel_owned<T>::operator new(size_t size, rust_kernel *kernel,
const char *tag) {
return kernel->malloc(size, tag);
}
#endif /* RUST_KERNEL_H */

View file

@ -26,6 +26,4 @@ public: \
void deref() { if(0 == sync::decrement(ref_count)) { delete_this(); } } \
intptr_t get_ref_count() { return sync::read(ref_count); }
#endif

View file

@ -1,7 +1,7 @@
#include "rust_globals.h"
#include "rust_scheduler.h"
#include "rust_task.h"
#include "rust_globals.h"
#include "rust_util.h"
#include "rust_sched_launcher.h"

View file

@ -13,7 +13,6 @@
#include "rust_port_selector.h"
#include "rust_type.h"
#include "rust_sched_loop.h"
#include "memory.h"
// The amount of extra space at the end of each stack segment, available
// to the rt, compiler and dynamic linker for running small functions

View file

@ -13,7 +13,6 @@
#include "rust_unwind.h"
#include "rust_upcall.h"
#include "rust_util.h"
#include <stdint.h>
#ifdef __GNUC__
#define LOG_UPCALL_ENTRY(task) \