Skip to content

Commit b54e1a3

Browse files
committed
Addressing truffle-inlining warnings in library package
1 parent cb71b95 commit b54e1a3

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/main/java/org/truffleruby/core/array/library/NativeArrayStorage.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
import com.oracle.truffle.api.CompilerDirectives;
1717
import com.oracle.truffle.api.TruffleSafepoint;
1818
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
19-
import com.oracle.truffle.api.profiles.ConditionProfile;
19+
import com.oracle.truffle.api.dsl.Bind;
20+
import com.oracle.truffle.api.nodes.Node;
21+
import com.oracle.truffle.api.profiles.InlinedConditionProfile;
2022
import com.oracle.truffle.api.profiles.LoopConditionProfile;
2123
import org.truffleruby.RubyContext;
2224
import org.truffleruby.cext.UnwrapNode;
@@ -99,9 +101,10 @@ protected Object read(int index,
99101
protected void write(int index, Object value,
100102
@CachedLibrary(limit = "1") InteropLibrary wrappers,
101103
@Cached WrapNode wrapNode,
102-
@Cached ConditionProfile isPointerProfile) {
104+
@Cached InlinedConditionProfile isPointerProfile,
105+
@Bind("$node") Node node) {
103106
final ValueWrapper wrapper = wrapNode.execute(value);
104-
if (!isPointerProfile.profile(wrappers.isPointer(wrapper))) {
107+
if (!isPointerProfile.profile(node, wrappers.isPointer(wrapper))) {
105108
wrappers.toNative(wrapper);
106109
}
107110

src/main/java/org/truffleruby/core/array/library/package-info.java

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)