Skip to content

Commit 5816663

Browse files
committed
Remove invalid usage of counting profile
1 parent b59d520 commit 5816663

File tree

1 file changed

+3
-3
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy

1 file changed

+3
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/GraalHPyHandle.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ public GraalHPyHandle(Object delegate) {
8383

8484
@ExportMessage
8585
boolean isPointer(
86-
@Exclusive @Cached("createCountingProfile()") ConditionProfile isNativeProfile) {
86+
@Exclusive @Cached ConditionProfile isNativeProfile) {
8787
return isNativeProfile.profile(id != -1);
8888
}
8989

9090
@ExportMessage
9191
long asPointer(
92-
@Exclusive @Cached("createCountingProfile()") ConditionProfile isNativeProfile) throws UnsupportedMessageException {
92+
@Exclusive @Cached ConditionProfile isNativeProfile) throws UnsupportedMessageException {
9393
if (!isPointer(isNativeProfile)) {
9494
CompilerDirectives.transferToInterpreterAndInvalidate();
9595
throw UnsupportedMessageException.create();
@@ -100,7 +100,7 @@ long asPointer(
100100
@ExportMessage
101101
void toNative(
102102
@CachedContext(PythonLanguage.class) PythonContext context,
103-
@Exclusive @Cached("createCountingProfile()") ConditionProfile isNativeProfile) {
103+
@Exclusive @Cached ConditionProfile isNativeProfile) {
104104
if (!isPointer(isNativeProfile)) {
105105
id = context.getHPyContext().getHPyHandleForObject(this);
106106
}

0 commit comments

Comments
 (0)