Skip to content

Commit ab121de

Browse files
committed
---
yaml --- r: 2766 b: refs/heads/master c: de2e84e h: refs/heads/master v: v3
1 parent 32e54df commit ab121de

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 31de8e15c0f9575c236fc87fbbf02bd08e3b8842
2+
refs/heads/master: de2e84e5b044d8635387bacd37d6088bd8dffd66

trunk/src/comp/middle/trans.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ fn T_crate(&type_names tn) -> TypeRef {
503503
T_int(), // size_t activate_glue
504504
T_int(), // size_t yield_glue
505505
T_int(), // size_t unwind_glue
506-
T_int(), // size_t gc_glue
506+
T_int(), // size_t pad
507507
T_int(), // size_t pad
508508
T_int(), // int n_rust_syms
509509
T_int(), // int n_c_syms
@@ -7668,10 +7668,10 @@ fn create_crate_constant(ValueRef crate_ptr, @glue_fns glues) {
76687668
C_null(T_int()), // ptrdiff_t debug_info_off
76697669
C_null(T_int()), // size_t debug_info_sz
76707670
C_null(T_int()), // size_t pad
7671-
C_null(T_int()), // size_t pad
76727671
C_null(T_int()), // size_t pad2
7673-
C_null(T_int()), // size_t gc_glue_off
76747672
C_null(T_int()), // size_t pad3
7673+
C_null(T_int()), // size_t pad4
7674+
C_null(T_int()), // size_t pad5
76757675
C_null(T_int()), // int n_rust_syms
76767676
C_null(T_int()), // int n_c_syms
76777677
C_null(T_int()) // int n_libs

trunk/src/rt/rust_crate.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ rust_crate::get_relocation_diff() const {
1111
return ((uintptr_t)this - self_addr);
1212
}
1313

14-
uintptr_t
15-
rust_crate::get_gc_glue() const {
16-
return ((uintptr_t)this + gc_glue_off);
17-
}
18-
1914
rust_crate::mem_area::mem_area(rust_dom *dom, uintptr_t pos, size_t sz)
2015
: dom(dom),
2116
base(pos),

trunk/src/rt/rust_internal.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,11 @@ class rust_crate {
231231
ptrdiff_t debug_info_off; // Offset from this to .debug_info.
232232
size_t debug_info_sz; // Size of .debug_info.
233233

234-
ptrdiff_t activate_glue_off;
235234
ptrdiff_t pad;
236235
ptrdiff_t pad2;
237-
ptrdiff_t gc_glue_off;
238236
ptrdiff_t pad3;
237+
ptrdiff_t pad4;
238+
ptrdiff_t pad5;
239239

240240
public:
241241

@@ -247,7 +247,6 @@ class rust_crate {
247247

248248
uintptr_t get_image_base() const;
249249
ptrdiff_t get_relocation_diff() const;
250-
uintptr_t get_gc_glue() const;
251250

252251
struct mem_area
253252
{

trunk/src/rt/rust_task.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ rust_task::gc(size_t nargs)
380380
{
381381
DLOG(dom, task,
382382
"task %s @0x%" PRIxPTR " garbage collecting", name, this);
383-
run_after_return(nargs, dom->root_crate->get_gc_glue());
383+
// run_after_return(nargs, rust_gc_glue);
384384
}
385385

386386
void

0 commit comments

Comments
 (0)