зеркало из https://github.com/github/ruby.git
* gc.c (allocate_sorted_heaps, before_gc_sweep, gc_sweep): removed
unused variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
827a17bdbb
Коммит
21fbc8f6d3
|
@ -1,3 +1,8 @@
|
||||||
|
Sat May 29 08:46:29 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* gc.c (allocate_sorted_heaps, before_gc_sweep, gc_sweep): removed
|
||||||
|
unused variables.
|
||||||
|
|
||||||
Fri May 28 20:35:21 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
Fri May 28 20:35:21 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* thread.c (blocking_region_begin): avoid RUBY_VM_CHECK_INTS()
|
* thread.c (blocking_region_begin): avoid RUBY_VM_CHECK_INTS()
|
||||||
|
|
6
gc.c
6
gc.c
|
@ -894,7 +894,7 @@ static void
|
||||||
allocate_sorted_heaps(rb_objspace_t *objspace, size_t next_heaps_length)
|
allocate_sorted_heaps(rb_objspace_t *objspace, size_t next_heaps_length)
|
||||||
{
|
{
|
||||||
struct sorted_heaps_slot *p;
|
struct sorted_heaps_slot *p;
|
||||||
size_t size, i;
|
size_t size;
|
||||||
|
|
||||||
size = next_heaps_length*sizeof(struct sorted_heaps_slot);
|
size = next_heaps_length*sizeof(struct sorted_heaps_slot);
|
||||||
|
|
||||||
|
@ -1968,8 +1968,6 @@ ready_to_gc(rb_objspace_t *objspace)
|
||||||
static void
|
static void
|
||||||
before_gc_sweep(rb_objspace_t *objspace, size_t *free_min)
|
before_gc_sweep(rb_objspace_t *objspace, size_t *free_min)
|
||||||
{
|
{
|
||||||
size_t i = 0;
|
|
||||||
struct heaps_slot *find_slot, *slot;
|
|
||||||
freelist = 0;
|
freelist = 0;
|
||||||
objspace->heap.do_heap_free = (size_t)((heaps_used * HEAP_OBJ_LIMIT) * 0.65);
|
objspace->heap.do_heap_free = (size_t)((heaps_used * HEAP_OBJ_LIMIT) * 0.65);
|
||||||
*free_min = (size_t)((heaps_used * HEAP_OBJ_LIMIT) * 0.2);
|
*free_min = (size_t)((heaps_used * HEAP_OBJ_LIMIT) * 0.2);
|
||||||
|
@ -2065,8 +2063,6 @@ gc_lazy_sweep(rb_objspace_t *objspace)
|
||||||
static void
|
static void
|
||||||
gc_sweep(rb_objspace_t *objspace)
|
gc_sweep(rb_objspace_t *objspace)
|
||||||
{
|
{
|
||||||
RVALUE *p, *pend;
|
|
||||||
size_t i;
|
|
||||||
size_t free_min = 0;
|
size_t free_min = 0;
|
||||||
|
|
||||||
before_gc_sweep(objspace, &free_min);
|
before_gc_sweep(objspace, &free_min);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#define RUBY_VERSION "1.9.3"
|
#define RUBY_VERSION "1.9.3"
|
||||||
#define RUBY_RELEASE_DATE "2010-05-28"
|
#define RUBY_RELEASE_DATE "2010-05-29"
|
||||||
#define RUBY_PATCHLEVEL -1
|
#define RUBY_PATCHLEVEL -1
|
||||||
#define RUBY_BRANCH_NAME "trunk"
|
#define RUBY_BRANCH_NAME "trunk"
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
#define RUBY_VERSION_TEENY 1
|
#define RUBY_VERSION_TEENY 1
|
||||||
#define RUBY_RELEASE_YEAR 2010
|
#define RUBY_RELEASE_YEAR 2010
|
||||||
#define RUBY_RELEASE_MONTH 5
|
#define RUBY_RELEASE_MONTH 5
|
||||||
#define RUBY_RELEASE_DAY 28
|
#define RUBY_RELEASE_DAY 29
|
||||||
|
|
||||||
#include "ruby/version.h"
|
#include "ruby/version.h"
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче