[vmkit-commits] [vmkit] r59520 - /vmkit/trunk/lib/Mvm/Allocator/gcmapper.h
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Tue Nov 18 04:16:15 PST 2008
Author: geoffray
Date: Tue Nov 18 06:16:14 2008
New Revision: 59520
URL: http://llvm.org/viewvc/llvm-project?rev=59520&view=rev
Log:
Fxi type for 64bit.
Modified:
vmkit/trunk/lib/Mvm/Allocator/gcmapper.h
Modified: vmkit/trunk/lib/Mvm/Allocator/gcmapper.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/Mvm/Allocator/gcmapper.h?rev=59520&r1=59519&r2=59520&view=diff
==============================================================================
--- vmkit/trunk/lib/Mvm/Allocator/gcmapper.h (original)
+++ vmkit/trunk/lib/Mvm/Allocator/gcmapper.h Tue Nov 18 06:16:14 2008
@@ -66,28 +66,28 @@
class GCMinAllocStack {
uintptr_t current;
- unsigned int max;
- unsigned int *free_list;
+ uintptr_t max;
+ uintptr_t *free_list;
unsigned short nbb;
public:
inline void initialise(uintptr_t n) { nbb = n; current = max = 0; free_list = 0; }
- inline void fill(unsigned int st, uintptr_t n) {
+ inline void fill(uintptr_t st, uintptr_t n) {
current = st;
max = st + n;
}
inline void inject_free(void *ptr) {
- *((unsigned int **)ptr) = free_list;
- free_list = (unsigned int *)ptr;
+ *((uintptr_t **)ptr) = free_list;
+ free_list = (uintptr_t *)ptr;
}
inline void *alloc() {
register uintptr_t res;
if(free_list) {
res = (uintptr_t)free_list;
- free_list = *((unsigned int **)res);
+ free_list = *((uintptr_t **)res);
} else {
res = current;
current += nbb;
More information about the vmkit-commits
mailing list