Skip to content

Commit

Permalink
MBARI 7 -- PPC & x86_64-bit fixes + gc stack scanning optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
brentr committed Feb 14, 2009
1 parent c00ced6 commit 27074f5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
Tue Feb 10 00:01:19 2009 Brent Roman <brent@mbari.org>

* gc.c: don't redundantly mark stack before base of current thread

* version.h: bumped date

Mon Feb 09 00:01:19 2009 Brent Roman <brent@mbari.org>

* rubysig.h: default values for STACK_WIPE_SITES if x86_64
Expand Down
10 changes: 5 additions & 5 deletions gc.c
Expand Up @@ -1420,14 +1420,14 @@ garbage_collect_0(VALUE *top_frame)
rb_setjmp(save_regs_gc_mark);
mark_locations_array((VALUE*)save_regs_gc_mark, sizeof(save_regs_gc_mark) / sizeof(VALUE *));
#if STACK_GROW_DIRECTION < 0
rb_gc_mark_locations(top_frame, rb_gc_stack_start);
rb_gc_mark_locations(top_frame, rb_curr_thread->stk_start);
#elif STACK_GROW_DIRECTION > 0
rb_gc_mark_locations(rb_gc_stack_start, top_frame + 1);
rb_gc_mark_locations(rb_curr_thread->stk_start, top_frame + 1);
#else
if (rb_gc_stack_grow_direction < 0)
rb_gc_mark_locations(top_frame, rb_gc_stack_start);
rb_gc_mark_locations(top_frame, rb_curr_thread->stk_start);
else
rb_gc_mark_locations(rb_gc_stack_start, top_frame + 1);
rb_gc_mark_locations(rb_curr_thread->stk_start, top_frame + 1);
#endif
#ifdef __ia64
/* mark backing store (flushed register window on the stack) */
Expand All @@ -1436,7 +1436,7 @@ garbage_collect_0(VALUE *top_frame)
#endif
#if defined(__human68k__) || defined(__mc68000__)
rb_gc_mark_locations((VALUE*)((char*)STACK_END + 2),
(VALUE*)((char*)rb_gc_stack_start + 2));
(VALUE*)((char*)rb_curr_thread->stk_start + 2));
#endif
rb_gc_mark_threads();

Expand Down
8 changes: 4 additions & 4 deletions version.h
@@ -1,15 +1,15 @@
#define RUBY_VERSION "1.8.7"
#define RUBY_RELEASE_DATE "2009-2-9"
#define RUBY_RELEASE_DATE "2009-2-10"
#define RUBY_VERSION_CODE 187
#define RUBY_RELEASE_CODE 20090209
#define RUBY_RELEASE_CODE 20090210
#define RUBY_PATCHLEVEL 72

#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
#define RUBY_VERSION_TEENY 7
#define RUBY_RELEASE_YEAR 2009
#define RUBY_RELEASE_MONTH 2
#define RUBY_RELEASE_DAY 9
#define RUBY_RELEASE_DAY 10

#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];
Expand All @@ -28,7 +28,7 @@ RUBY_EXTERN const char *ruby_copyright;
#include "rubysig.h"

#define string_arg(s) #s
#define MBARI_RELEASE(wipe_sites) "MBARI 7-/" string_arg(wipe_sites)
#define MBARI_RELEASE(wipe_sites) "MBARI 7/" string_arg(wipe_sites)

#define RUBY_RELEASE_STR MBARI_RELEASE(STACK_WIPE_SITES) " on patchlevel"
#define RUBY_RELEASE_NUM RUBY_PATCHLEVEL
Expand Down

0 comments on commit 27074f5

Please sign in to comment.