Fwd: nobu:r45653 (trunk): gc.c: GC.stress after realloc

$B$3$NJQ99$O!"(Brealloc $B$G$b(B GC.stress $B$K$h$k(B GC
$B$rH/@8$5$;$h$&$H$7$F$$$^$9(B
$B$,!"$=$l0J>e$K!"(Bmalloc_increase $B$K$h$k(B GC $B$r(B realloc
$B$G$b5/$3$7$F$7$^$&(B
$B$N$G!"$3$l$^$G(B realloc $B$G$O(B GC
$B$O!JLGB?$K!K5/$i$J$$!"$H$$$&A0Ds$r2u$7$F(B
$B$$$k$N$G!"<j85$G!"$"$H$O(B rubyci
$B$N$[$&$G$b%^!<%/O3$l$,F~$C$F$$$k$h$&$G$9!#(B

http://rbci.lakewood.privs.net/ruby-trunk/log/20140421T221002Z.fail.html.gz

$BLGB?$K!"$H$$$&$3$H$J$N$G!"$4$/$^$l$K$O5/$C$F$$$?$o$1$G$9$,!"%l%"$9$.$?$H!#(B

$B$G!"$3$l$NBP=h$G$9$,!"(B

(1) [email protected]!J!)!K$r<i$k$?$a$K%j%P!<%H(B
(2) [email protected][email protected]$C$F!"E,@Z$K(B mark $B$9$k$h$&$KA4It=q$-49$($k(B

$B$H$$$&A*Br;h$,$"$j$^$9$,!"$3$l$O$I$&$7$?$b$s$G$7$g$&$M!#4{B8$N3HD%%i%$%V(B
$B%i%j$r9M$($k$H!"@dK>$7$F$7$^$&$N$G!"(B(1) $B$K?6$j$?$$$b$N$G$9$,!#(B

$B>/$J$/$H$b(B core [email protected]$1$O!"(Brealloc GC safe
$B$K=q$-49$($k$N$O;[email protected]$G$9!#$,!"$H(B
$B$j$"$($::#$O(B revert $B$+$J$!!#(B

$BJ}?K$H$7$F$O!"(B

(a) $B%Q%C%A$r$A$c$s$H!V(BGC.stress $B$N1F6A$r(B realloc
$B$G$bH/@8$5$;$k!W(B
$B!!!$H$$$&JQ99$K8BDj$9$k(B
(b) $B$3$NJQ99$rMQ$$$F!"(Bcore $B$r$A$c$s$H(B realloc GC safe
[email protected]$9$k(B

$B$H$$$&$N$,$$$$$H;W$$$^$9$,!"$I$&$G$7$g$&$+!#(B

(b) $B$r9M$($k$H!"(Brealloc $B$N;[email protected]$1Kh2s(B GC $BH/@8!"$,NI$$$N$+!)(B

-------- Original Message --------
Subject: [ruby-changes:33572] nobu:r45653 (trunk): gc.c: GC.stress after
realloc
Date: Tue, 22 Apr 2014 06:53:57 +0900 (JST)
From: nobu [email protected]
Reply-To: [email protected]
To: [email protected]

nobu 2014-04-22 06:53:48 +0900 (Tue, 22 Apr 2014)

New Revision: 45653

http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45653

Log:
gc.c: GC.stress after realloc

* gc.c (objspace_malloc_increase): run GC after realloc not only
  malloc and calloc by GC.stress.  [ruby-core:62103] [Feature #9761]

Modified files:
trunk/ChangeLog
trunk/gc.c
Index: ChangeLog

— ChangeLog (revision 45652)
+++ ChangeLog (revision 45653)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Apr 22 06:53:30 2014 Nobuyoshi N. [email protected]
+

    • gc.c (objspace_malloc_increase): run GC after realloc not only
  • malloc and calloc by GC.stress. [ruby-core:62103] [Feature #9761]

Mon Apr 21 19:12:20 2014 NARUSE, Yui [email protected]

  • string.c (rb_str_coderange_scan_restartable): coderange is always
    Index: gc.c
    ===================================================================
    — gc.c (revision 45652)
    +++ gc.c (revision 45653)
    @@ -6092,7 +6092,7 @@ objspace_malloc_increase(rb_objspace_t *
    https://github.com/ruby/ruby/blob/trunk/gc.c#L6092
    #endif
    }
  • if (type == MEMOP_TYPE_MALLOC) {
  • if (type == MEMOP_TYPE_MALLOC || type == MEMOP_TYPE_REALLOC) {
    if (ruby_gc_stress && !ruby_disable_gc_stress &&
    ruby_native_thread_p()) {
    garbage_collect_with_gvl(objspace, FALSE, TRUE, GPR_FLAG_MALLOC);
    }

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs