Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 88db33a7a3db
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 98f40296c2a3
Choose a head ref
  • 4 commits
  • 18 files changed
  • 1 contributor

Commits on Mar 7, 2015

  1. [Truffle] Hash#clear

    chrisseaton committed Mar 7, 2015

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    95c397a View commit details
  2. [Truffle] Hash.new

    chrisseaton committed Mar 7, 2015
    Copy the full SHA
    8ce70da View commit details
  3. Copy the full SHA
    c5786b9 View commit details
  4. Copy the full SHA
    98f4029 View commit details
1 change: 0 additions & 1 deletion spec/truffle/tags/core/hash/clear_tags.txt

This file was deleted.

13 changes: 0 additions & 13 deletions spec/truffle/tags/core/hash/compare_by_identity_tags.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,2 @@
fails:Hash#compare_by_identity causes future comparisons on the receiver to be made by identity
fails:Hash#compare_by_identity causes #compare_by_identity? to return true
fails:Hash#compare_by_identity returns self
fails:Hash#compare_by_identity uses the semantics of BasicObject#equal? to determine key identity
fails:Hash#compare_by_identity uses #equal? semantics, but doesn't actually call #equal? to determine identity
fails:Hash#compare_by_identity regards #dup'd objects as having different identities
fails:Hash#compare_by_identity regards #clone'd objects as having different identities
fails:Hash#compare_by_identity regards references to the same object as having the same identity
fails:Hash#compare_by_identity raises a RuntimeError on frozen hashes
fails:Hash#compare_by_identity perists over #dups
fails:Hash#compare_by_identity persists over #clones
fails:Hash#compare_by_identity does not copy string keys
fails:Hash#compare_by_identity? returns false by default
fails:Hash#compare_by_identity? returns true once #compare_by_identity has been invoked on self
fails:Hash#compare_by_identity? returns true when called multiple times on the same ident hash
6 changes: 0 additions & 6 deletions spec/truffle/tags/core/hash/delete_if_tags.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
fails:Hash#delete_if yields two arguments: key and value
fails:Hash#delete_if removes every entry for which block is true and returns self
fails:Hash#delete_if processes entries with the same order as each()
fails:Hash#delete_if raises a RuntimeError if called on a frozen instance
fails:Hash#delete_if returns an Enumerator if called on a non-empty hash without a block
fails:Hash#delete_if returns an Enumerator if called on an empty hash without a block
fails:Hash#delete_if returns an Enumerator if called on a frozen instance
1 change: 0 additions & 1 deletion spec/truffle/tags/core/hash/initialize_copy_tags.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
fails:Hash#initialize_copy replaces the contents of self with other
fails:Hash#initialize_copy tries to convert the passed argument to a hash using #to_hash
fails:Hash#initialize_copy raises a RuntimeError if called on a frozen instance that is modified
fails:Hash#initialize_copy raises a RuntimeError if called on a frozen instance that would not be modified
1 change: 0 additions & 1 deletion spec/truffle/tags/core/hash/new_tags.txt

This file was deleted.

14 changes: 0 additions & 14 deletions spec/truffle/tags/core/hash/reject_tags.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -87,7 +87,7 @@ public RubyHash aliases() {
aliases.add(new KeyValue(getContext().makeString("locale"),
getContext().makeString(new ByteList(getContext().getRuntime().getEncodingService().getLocaleEncoding().getName()))));

return HashOperations.verySlowFromEntries(getContext(), aliases);
return HashOperations.verySlowFromEntries(getContext(), aliases, false);
}
}

Original file line number Diff line number Diff line change
@@ -21,5 +21,10 @@ public static boolean isNull(RubyHash hash) {
public static boolean isBuckets(RubyHash hash) {
return hash.getStore() instanceof Entry[];
}

public static boolean isCompareByIdentity(RubyHash hash) {
return hash.isCompareByIdentity();

}

}
Loading