Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Nov 19, 2012
  1. @dbussink
  2. @dbussink
  3. @dbussink

    Style improvements for VM code

    dbussink authored
    In general we prefer using C++ style casts over C ones. Also we don't
    need to cast if we already have the correct type. In a few cases we
    should use our proper as<> template for casting.
    
    In the tooling interface we also have methods for casting, so we should
    use them and not do it manually.
    
    Another thing is to make sure we initialize all properties in
    constructors.
    
    Lastly we use variable array allocation where we can instead of using
    alloca() manually. This creates much simpler and easier to understand
    code.
  4. @dbussink

    Fix invalid memory writing in String

    dbussink authored
    We were writing outside the string space in rare cases. The problem is
    that when the original string had a capacity of 0 and the appended
    string also has size 0. This results in a new minimal capacity of 0.
    
    This means the string didn't need to be resized, but we still write a \0
    byte at the end. This means we overwrite memory of the next object in
    memory, causing corruption.
    
    This change makes sure we always increase the capacity when needed.
    
    Fixes #2030
  5. @jc00ke

    Merge pull request #2033 from frodsan/fix_socket_new_19

    jc00ke authored
    Fix Socket#new on X19.
  6. Add specs for Socket#new on X18

    Francesco Rodriguez authored
  7. Fix Socket#new on X18

    Francesco Rodriguez authored
    This fixes the following behaviour:
    
        require 'socket'
    
        # rbx -X18
        >> Socket.new(Socket::PF_UNIX, 'SOCK_DGRAM', 0)
        TypeError: converting to int
    
        >> Socket.new(Socket::PF_UNIX, :DGRAM, 0)
        TypeError: Tried to use non-reference value 0xf266 as type Bignum (10)
    
        # ruby1.8
    
        >> Socket.new(Socket::PF_UNIX, 'SOCK_DGRAM', 0)
        => #<Socket:0x106117798>
    
        >> Socket.new(Socket::PF_UNIX, :DGRAM, 0)
        Errno::EPROTONOSUPPORT: Protocol not supported - socket(2)
  8. Add specs for Socket#new on X19

    Francesco Rodriguez authored
  9. Fix Socket#new on X19.

    Francesco Rodriguez authored
    Socket#new `socket_type` argument can accept a symbol
    or string that references to a `Socket::SOCK_*`
    constant.
    
        require 'socket'
    
        # Before:
    
        >> Socket.new(Socket::PF_UNIX, :DGRAM, 0)
        TypeError: Tried to use non-reference value 0x10256 as type Bignum (10)
    
        >> Socket.new(Socket::PF_UNIX, 'SOCK_DGRAM', 0)
        TypeError: converting to int
    
        # After:
    
        >> Socket.new(Socket::PF_UNIX, :DGRAM, 0)
        => #<Socket:fd 5>
    
        >> Socket.new(Socket::PF_UNIX, 'SOCK_DGRAM', 0)
        => #<Socket:fd 6>
  10. @jc00ke

    Merge pull request #2031 from frodsan/add_tx18_option

    jc00ke authored
    Add -tx18 and -tx20 options to bin/mspec
  11. Add -tx18, -tx19 and -tx20 options to the docs

    Francesco Rodriguez authored
  12. Add -tx20 option to bin/mspec

    Francesco Rodriguez authored
    This allows to run the specs in 2.0 mode.
  13. Add -tx18 option to bin/mspec

    Francesco Rodriguez authored
    This allows to run the specs in 1.8 mode if you are
    using 1.9 mode by default.
Commits on Nov 18, 2012
  1. @dbussink

    Merge pull request #2027 from ikataitsev/master

    dbussink authored
    Removed duplicate NotImplementedError definition
  2. @ikataitsev
Commits on Nov 17, 2012
  1. @dbussink

    Merge pull request #2014 from frodsan/fix_socket_constants

    dbussink authored
    Fix Socket#socketpair on X19.
Commits on Nov 16, 2012
  1. Add spec for Socket#socketpair on X18

    Francesco Rodriguez authored
  2. @dbussink

    Merge pull request #2021 from kachick/improve/modify_visibility_of_St…

    dbussink authored
    …ruct-_attrs
    
    Modify visibility of Struct#_attrs, "public" to "private"
  3. @dbussink

    Merge pull request #2020 from kachick/improve/modify_some_coding_in_S…

    dbussink authored
    …truct
    
    Improve some code in Struct
  4. @dbussink

    Merge pull request #2019 from kachick/fix/adjust_definition_places_of…

    dbussink authored
    …_some_methods_in_Kernel-common
    
    Adjust definition places of some methods in Kernel-common
  5. @kachick

    Modify visibility of Struct#_attrs, "public" to "private"

    kachick authored
    This is a private method.
    Because accessing inner data structures.
  6. @kachick

    Use Struct#_attrs in Struct#initialize

    kachick authored
    For get consistency of coding in Struct.
  7. @kachick

    Improve Struct.#members

    kachick authored
    * Adjust definition place of Struct.#members
    * Improve converting type for own version
    
    Before
    ------
    struct.rb: define
    struct18.rb: none
    struct19.rb: define
    
    After
    -----
    struct.rb: define
    struct18.rb: none
    struct19.rb: none
    
    Thanks for the pointing out.
    ----------------------------
    * kachick#3 (comment)
    * kachick@bbe2d55
    * kachick@4774b58
  8. @kachick
  9. @kachick

    Remove disused definition of ConstantScope#const_defined?

    kachick authored
    Before
    ------
    constant_scope.rb: define
    constant_scope18.rb: define
    constant_scope19.rb: define
    
    After
    -----
    constant_scope.rb: none
    constant_scope18.rb: define
    constant_scope19.rb: define
  10. @kachick

    Adjust definition place of Enumerator#initialize

    kachick authored
    Before
    -------
    enumerator.rb: define
    enumerator18.rb: none
    enumerator19.rb: define
    
    After
    -----
    enumerator.rb: none
    enumerator18.rb: define
    enumerator19.rb: define
  11. @dbussink

    Make inline policies configurable

    dbussink authored
    Fixes #1947
Commits on Nov 15, 2012
  1. @dbussink

    Allow for jitting aliased methods

    dbussink authored
    We can simply use the original executable if we encounter an alias.
  2. @dbussink

    Don't emit code for creating a block if not necessary

    dbussink authored
    When we inline blocks succesfully in the JIT, we don't need to emit code
    to create this block on the stack. This is only necessary when we either
    fail to inline, or when emitting the uncommon case in the jit.
    
    This implements a better version of the behavior removed in
    897570e because that was buggy. This
    implementation handles more cases and also doesn't suffer from the bug
    present in that implementation.
  3. @dbussink

    Merge pull request #2017 from ryoqun/rational-complex-tags

    dbussink authored
    Remove old tags for Rational and Complex specs
  4. @ryoqun

    Remove old tags for Rational and Complex specs

    ryoqun authored
    The following commit moved some Rational and Complex specs. But didn't
    update spec tags. Just remove them bacause it's now passing:
      1779c73 Rational()/Complex() should be Kernel specs
Commits on Nov 14, 2012
  1. @dbussink

    Merge pull request #2008 from jmstacey/documentation_update_dev_build

    dbussink authored
    Document how to Build Rubinius for debugging purposes
  2. @jmstacey
  3. @jc00ke
Something went wrong with that request. Please try again.