Skip to content

Commit 5d37a12

Browse files
committed
Tune some inlining cutoffs
1 parent e1230ed commit 5d37a12

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/structs/CFields.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
import com.oracle.truffle.api.CompilerAsserts;
111111
import com.oracle.truffle.api.CompilerDirectives;
112112
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
113+
import com.oracle.truffle.api.HostCompilerDirectives.InliningCutoff;
113114

114115
@CApiFields
115116
public enum CFields {
@@ -423,6 +424,7 @@ CStructs struct() {
423424
return struct;
424425
}
425426

427+
@InliningCutoff
426428
private static void resolve() {
427429
CompilerAsserts.neverPartOfCompilation();
428430
long offsetsPointer = CApiContext.getNativeCAPIMetadataPointer(null) + (CConstants.VALUES.length + 1L) * Long.BYTES;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/object/PythonObject.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ public final void clearNativePointer() {
200200
this.nativePointer = UNINITIALIZED;
201201
}
202202

203-
@InliningCutoff
204203
public final boolean isNative() {
205204
return nativePointer != UNINITIALIZED;
206205
}

0 commit comments

Comments
 (0)