Skip to content

Commit

Permalink
Merge PR #309: Put Long#parseLong() behind boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
smarr committed Aug 6, 2019
2 parents eb16019 + 00bc32b commit db2922c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/som/primitives/IntegerPrims.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@ protected boolean hasTagIgnoringEagerness(final Class<? extends Tag> tag) {
}

@Specialization
@TruffleBoundary
public final Object doSClass(final String argument) {
return Long.parseLong(argument);
}

@Specialization
@TruffleBoundary
public final Object doSClass(final SSymbol argument) {
return Long.parseLong(argument.getString());
}
Expand Down

0 comments on commit db2922c

Please sign in to comment.