Skip to content

Commit

Permalink
Add realloc method to rust_kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
robarnold committed Jul 7, 2011
1 parent 130006c commit 2e2e1f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rt/rust_kernel.cpp
Expand Up @@ -206,6 +206,11 @@ rust_kernel::malloc(size_t size) {
return _region->malloc(size);
}

void *
rust_kernel::realloc(void *mem, size_t size) {
return _region->realloc(mem, size);
}

void rust_kernel::free(void *mem) {
_region->free(mem);
}
Expand Down
1 change: 1 addition & 0 deletions src/rt/rust_kernel.h
Expand Up @@ -110,6 +110,7 @@ class rust_kernel : public rust_thread {
virtual ~rust_kernel();

void *malloc(size_t size);
void *realloc(void *mem, size_t size);
void free(void *mem);

// FIXME: this should go away
Expand Down

0 comments on commit 2e2e1f7

Please sign in to comment.