Skip to content

Commit 35be0ff

Browse files
committed
Allow inlining of string conversion boundaries.
1 parent 2a5e4d5 commit 35be0ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/meta/StringConversion.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ private interface FromGuest {
203203
return new AlmostString(extractHostBytes(host), extractHostHash(host), extractHostCoder(host));
204204
};
205205

206-
@TruffleBoundary
206+
@TruffleBoundary(allowInlining = true)
207207
private static String newHostString(char[] chars) {
208208
return new String(chars);
209209
}
@@ -232,7 +232,7 @@ private interface ToHost {
232232
}
233233
};
234234

235-
@TruffleBoundary
235+
@TruffleBoundary(allowInlining = true)
236236
private static String newStringFromLatin1(byte[] bytes) {
237237
return new String(bytes, StandardCharsets.ISO_8859_1 /*- LATIN1 */);
238238
}
@@ -247,7 +247,7 @@ private interface ToGuest {
247247

248248
ToGuest TO_NOT_COMPACT = (host, meta, maybeCopy) -> produceGuestString8(meta, getCharArray(host), extractHostHash(host));
249249

250-
@TruffleBoundary
250+
@TruffleBoundary(allowInlining = true)
251251
private static char[] getCharArray(String host) {
252252
return host.toCharArray();
253253
}

0 commit comments

Comments
 (0)