OpenJDK / jdk / hs
changeset 36929:0dc62e7c6a29
8144693: Intrinsify StringCoding.hasNegatives() on SPARC
Summary: Implemented C2 instrinsic for StringCode.hasNegatives() on SPARC.
Reviewed-by: kvn, jrose, thartmann
Contributed-by: Guy Delamarter <guy.delamarter@oracle.com>
author | thartmann |
---|---|
date | Mon, 21 Mar 2016 08:42:00 +0100 |
parents | 1742198594f8 |
children | 74e9f4b90006 |
files | jdk/src/java.base/share/classes/java/lang/StringCoding.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/jdk/src/java.base/share/classes/java/lang/StringCoding.java Thu Mar 10 16:08:20 2016 -0800 +++ b/jdk/src/java.base/share/classes/java/lang/StringCoding.java Mon Mar 21 08:42:00 2016 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -146,7 +146,7 @@ } @HotSpotIntrinsicCandidate - private static boolean hasNegatives(byte[] ba, int off, int len) { + public static boolean hasNegatives(byte[] ba, int off, int len) { for (int i = off; i < off + len; i++) { if (ba[i] < 0) { return true;