changeset 12733:3e04ae642449

8132081: C2 support for Adler32 on SPARC Summary: Add C2 instrinsic support for Adler32 checksum on SPARC. Reviewed-by: kvn Contributed-by: ahmed.khawaja@oracle.com
author kvn
date Thu, 03 Sep 2015 15:04:05 -0700
parents ab34efc88ca0
children 7c33312230ff
files src/java.base/share/classes/java/util/zip/Adler32.java
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/util/zip/Adler32.java	Fri Aug 28 13:40:44 2015 +0200
+++ b/src/java.base/share/classes/java/util/zip/Adler32.java	Thu Sep 03 15:04:05 2015 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2015, 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
@@ -28,6 +28,8 @@
 import java.nio.ByteBuffer;
 import sun.nio.ch.DirectBuffer;
 
+import jdk.internal.HotSpotIntrinsicCandidate;
+
 /**
  * A class that can be used to compute the Adler-32 checksum of a data
  * stream. An Adler-32 checksum is almost as reliable as a CRC-32 but
@@ -126,8 +128,11 @@
     }
 
     private native static int update(int adler, int b);
+
+    @HotSpotIntrinsicCandidate
     private native static int updateBytes(int adler, byte[] b, int off,
                                           int len);
+    @HotSpotIntrinsicCandidate
     private native static int updateByteBuffer(int adler, long addr,
                                                int off, int len);
 }