Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: docs-update
Commits on Feb 7, 2013
  1. @dbussink

    Merge pull request #2143 from ryoqun/proc-subclass-new

    dbussink authored
    Don't duplicate Proc objects if not needed
  2. Don't duplicate Proc objects if not needed

    authored
    Currently, when its receiver is a subclass of Proc, Proc::from_env() duplicates
    passed objects, even if not needed. The case is that passing instances of the
    same subclass of Proc:
    
        class MyProc < Proc
        end
        prc = Proc.new{}
        my_prc = MyProc.new(&prc)
        # => returns an instance of MyProc duplicated from prc
        MyProc.new(&my_prc)
        # => SHOULD return my_prc, but DOESN'T, rather DOES duplicate my_prc
        Proc.new(&prc)
        # => returns prc, by comparison
    
    The problem is that there is unintended code path in which the needless
    duplication can happen.
    
    Thus, the duplication logic is moved from Proc::from_env() into the ruby code
    of Proc.new and a new primitive called proc_duplicate_as_subclass.
    
    Also revert no longer valid changes done in the following commit, which
    originally tried to fix this:
    
    1abfbdf
    Make Proc::from_env reset klass if appropriate
  3. Add failing tags

    authored
  4. Spec ProcSubClass.new

    authored
Commits on Feb 6, 2013
  1. @dbussink

    Fix issue with invalid reading of byte size

    dbussink authored
    The buffer isn't marked on stack and doesn't need to be since we copy
    data. This does mean however, we shouldn't read from it after we have
    possibly gc'ed. By storing the buffer size at the beginning we ensure we
    don't need to read it later.
  2. @dbussink

    Merge pull request #2145 from ryoqun/improve-bytecode-printer

    dbussink authored
    Improve bytecode printer
  3. @dbussink
  4. @dbussink
  5. @dbussink

    Merge pull request #2144 from ryoqun/print-bytecode-literals

    dbussink authored
    Always show actual literals in bytecode printer
  6. Always show actual literals in bytecode printer

    authored
    Currently the keyword "literal" is used inconsistently across the bytecode
    instructions. For example, push_const uses it, but set_const doesn't.
    
    Always use "literal" to indicate the index to literals. And this enables
    Rubinius' built-in bytecode printer to show the actual literals referenced by
    the index.
    
    This would really ease my life when hacking on Rubinus, hopefully others
    starting to hack on it.
  7. @dbussink

    Implement rb_method_boundp

    dbussink authored
    Fixes #1145
  8. @dbussink
  9. @jc00ke

    Merge pull request #2142 from ryoqun/proc-new-comment

    jc00ke authored
     Add a comment to the assembly of Proc.new
  10. @brixen

    Fixed Kernel.chop[!].

    brixen authored
  11. @brixen
  12. Remove trailing white space

    authored
Commits on Feb 5, 2013
  1. @dbussink
  2. @dbussink
  3. @dbussink
  4. @dbussink
  5. @dbussink
  6. @dbussink
  7. @dbussink

    Add global symbol for to_ary

    dbussink authored
  8. @dbussink

    Handle signals after pthread_cond_wait is interrupted

    dbussink authored
    There might be signals that need to be run if pthread_cond_wait is
    interrupted. Fixes #2093
Commits on Feb 4, 2013
  1. @brixen
  2. @brixen
Something went wrong with that request. Please try again.