Skip to content

Commit 386069f

Browse files
jamortonbrson
authored andcommittedApr 3, 2012
actually remove memory.h; include cleanups
1 parent 632a4c9 commit 386069f

File tree

6 files changed

+4
-21
lines changed

6 files changed

+4
-21
lines changed
 

‎src/rt/memory.h

-9
This file was deleted.

‎src/rt/rust_kernel.h

+3-7
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,13 @@ class rust_kernel {
8989

9090
template <typename T> struct kernel_owned {
9191
inline void *operator new(size_t size, rust_kernel *kernel,
92-
const char *tag);
92+
const char *tag) {
93+
return kernel->malloc(size, tag);
94+
}
9395

9496
void operator delete(void *ptr) {
9597
((T *)ptr)->kernel->free(ptr);
9698
}
9799
};
98100

99-
template <typename T>
100-
inline void *kernel_owned<T>::operator new(size_t size, rust_kernel *kernel,
101-
const char *tag) {
102-
return kernel->malloc(size, tag);
103-
}
104-
105101
#endif /* RUST_KERNEL_H */

‎src/rt/rust_refcount.h

-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,4 @@ public: \
2626
void deref() { if(0 == sync::decrement(ref_count)) { delete_this(); } } \
2727
intptr_t get_ref_count() { return sync::read(ref_count); }
2828

29-
30-
3129
#endif

‎src/rt/rust_scheduler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2+
#include "rust_globals.h"
23
#include "rust_scheduler.h"
34
#include "rust_task.h"
4-
#include "rust_globals.h"
55
#include "rust_util.h"
66
#include "rust_sched_launcher.h"
77

‎src/rt/rust_task.h

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "rust_port_selector.h"
1414
#include "rust_type.h"
1515
#include "rust_sched_loop.h"
16-
#include "memory.h"
1716

1817
// The amount of extra space at the end of each stack segment, available
1918
// to the rt, compiler and dynamic linker for running small functions

‎src/rt/rust_upcall.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "rust_unwind.h"
1414
#include "rust_upcall.h"
1515
#include "rust_util.h"
16-
#include <stdint.h>
1716

1817
#ifdef __GNUC__
1918
#define LOG_UPCALL_ENTRY(task) \

0 commit comments

Comments
 (0)
Please sign in to comment.