actually remove memory.h; include cleanups
This commit is contained in:
parent
632a4c9326
commit
386069f39e
@ -1,9 +0,0 @@
|
||||
// -*- c++ -*-
|
||||
#ifndef MEMORY_H
|
||||
#define MEMORY_H
|
||||
|
||||
#include "rust_task.h"
|
||||
|
||||
|
||||
|
||||
#endif /* MEMORY_H */
|
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
@ -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) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user