diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2010-09-29 17:22:07 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2010-09-29 17:22:13 -0700 |
| commit | b970563fe3f36853250f4cef65a8425431789e8b (patch) | |
| tree | c09d7d39a46419c24ea88164ee047c10ebd7da39 /src/rt/rust_task.cpp | |
| parent | 7e733bf2ee0c23be5a49fd81a419d3e69c38be27 (diff) | |
| download | rust-b970563fe3f36853250f4cef65a8425431789e8b.tar.gz rust-b970563fe3f36853250f4cef65a8425431789e8b.zip | |
Patchwork of attempted fixes to effect system and gc system; eventually give up and disable it entirely in the runtime. Will need extensive reworking.
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 3bc41b935ca..97eeb4bff5d 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -488,6 +488,10 @@ rust_task::unlink_gc(gc_alloc *gcm) { void * rust_task::malloc(size_t sz, type_desc *td) { + // FIXME: GC is disabled for now. + // Effects, GC-memory classification are all wrong. + td = NULL; + if (td) { sz += sizeof(gc_alloc); } @@ -512,6 +516,9 @@ rust_task::malloc(size_t sz, type_desc *td) void * rust_task::realloc(void *data, size_t sz, bool is_gc) { + // FIXME: GC is disabled for now. + // Effects, GC-memory classification are all wrong. + is_gc = false; if (is_gc) { gc_alloc *gcm = (gc_alloc*)(((char *)data) - sizeof(gc_alloc)); unlink_gc(gcm); @@ -534,6 +541,9 @@ rust_task::realloc(void *data, size_t sz, bool is_gc) void rust_task::free(void *p, bool is_gc) { + // FIXME: GC is disabled for now. + // Effects, GC-memory classification are all wrong. + is_gc = false; if (is_gc) { gc_alloc *gcm = (gc_alloc*)(((char *)p) - sizeof(gc_alloc)); unlink_gc(gcm); |
