* gc.c (GC_PROF_TIMER_STOP): regularize `marked' to suppress
warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fc130468c7
commit
790abc5991
@ -1,3 +1,8 @@
|
|||||||
|
Sat May 29 10:12:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* gc.c (GC_PROF_TIMER_STOP): regularize `marked' to suppress
|
||||||
|
warnings.
|
||||||
|
|
||||||
Sat May 29 09:34:32 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sat May 29 09:34:32 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* test/ruby/envutil.rb: fix for --disable-gems.
|
* test/ruby/envutil.rb: fix for --disable-gems.
|
||||||
|
2
gc.c
2
gc.c
@ -166,7 +166,7 @@ getrusage_time(void)
|
|||||||
gc_time = getrusage_time() - gc_time;\
|
gc_time = getrusage_time() - gc_time;\
|
||||||
if (gc_time < 0) gc_time = 0;\
|
if (gc_time < 0) gc_time = 0;\
|
||||||
objspace->profile.record[count].gc_time = gc_time;\
|
objspace->profile.record[count].gc_time = gc_time;\
|
||||||
objspace->profile.record[count].is_marked = marked;\
|
objspace->profile.record[count].is_marked = !!(marked);\
|
||||||
GC_PROF_SET_HEAP_INFO(objspace->profile.record[count]);\
|
GC_PROF_SET_HEAP_INFO(objspace->profile.record[count]);\
|
||||||
objspace->profile.count++;\
|
objspace->profile.count++;\
|
||||||
}\
|
}\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user