[ruby-cvs:62090] nobu:r54927 (trunk): random.c: default seed mark

nobu at ruby-lang.org nobu at ruby-lang.org
Fri May 6 15:29:56 JST 2016


nobu	2016-05-06 15:29:56 +0900 (Fri, 06 May 2016)

  New Revision: 54927

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54927

  Log:
    random.c: default seed mark
    
    * random.c (Init_Random_default): since seed is marked by
      random_mark, no needs to mark itself as a global variable.
      allocate Random instance before making the seed value, to get
      rid of the potential risk of GC during the allocation.

  Modified files:
    trunk/random.c


More information about the ruby-cvs mailing list