File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
truffle/src/com.oracle.truffle.api.strings/src/com/oracle/truffle/api/strings Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,6 @@ static int getJavaStringHashMasked(String s) {
163
163
return hash ;
164
164
}
165
165
166
- @ TruffleBoundary
167
166
private static String allocateJavaString () {
168
167
try {
169
168
return (String ) UNSAFE .allocateInstance (String .class );
@@ -172,10 +171,9 @@ private static String allocateJavaString() {
172
171
}
173
172
}
174
173
175
- @ TruffleBoundary
176
174
static String createJavaString (byte [] bytes , int stride , int hash ) {
177
175
if (stride < (COMPACT_STRINGS_ENABLED ? 0 : 1 ) || stride > 1 ) {
178
- throw new IllegalArgumentException ("illegal stride!" );
176
+ throw CompilerDirectives . shouldNotReachHere ("illegal stride!" );
179
177
}
180
178
String ret = allocateJavaString ();
181
179
UNSAFE .putInt (ret , javaStringHashFieldOffset , hash );
You can’t perform that action at this time.
0 commit comments