Skip to content

Commit c384094

Browse files
committed
Add @ignore to method hash helpers
1 parent d91b8fe commit c384094

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/method/PBuiltinMethod.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import com.oracle.truffle.api.CompilerAsserts;
3434
import com.oracle.truffle.api.library.ExportLibrary;
3535
import com.oracle.truffle.api.library.ExportMessage;
36+
import com.oracle.truffle.api.library.ExportMessage.Ignore;
3637
import com.oracle.truffle.api.object.Shape;
3738

3839
// Corresponds to PyCFunction, but that name is just confusing
@@ -74,6 +75,7 @@ boolean isHashable() {
7475
return true;
7576
}
7677

78+
@Ignore
7779
public long hash() {
7880
return PythonAbstractObject.systemHashCode(this.getSelf()) ^ PythonAbstractObject.systemHashCode(this.getFunction());
7981
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/method/PMethod.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import com.oracle.truffle.api.library.CachedLibrary;
3636
import com.oracle.truffle.api.library.ExportLibrary;
3737
import com.oracle.truffle.api.library.ExportMessage;
38+
import com.oracle.truffle.api.library.ExportMessage.Ignore;
3839
import com.oracle.truffle.api.object.Shape;
3940
import com.oracle.truffle.api.source.SourceSection;
4041

@@ -87,6 +88,7 @@ boolean isHashable() {
8788
return true;
8889
}
8990

91+
@Ignore
9092
public long hash() {
9193
return PythonAbstractObject.systemHashCode(this.getSelf()) ^ PythonAbstractObject.systemHashCode(this.getFunction());
9294
}

0 commit comments

Comments
 (0)