You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Norbert Kalmár (Jira)" <ji...@apache.org> on 2020/02/12 14:50:00 UTC

[jira] [Resolved] (ZOOKEEPER-3685) Use JDK Arrays Equals for Jute

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-3685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norbert Kalmár resolved ZOOKEEPER-3685.
---------------------------------------
    Fix Version/s: 3.6.1
       Resolution: Fixed

> Use JDK Arrays Equals for Jute
> ------------------------------
>
>                 Key: ZOOKEEPER-3685
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3685
>             Project: ZooKeeper
>          Issue Type: Improvement
>            Reporter: David Mollitor
>            Assignee: David Mollitor
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 3.6.1
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> ZK Jute compiler uses its own byte Array equality check.  JDK has one which is marked with the {{HotSpotIntrinsicCandidate}} annotation.  This means that the JDK may have a native optimization for the routine.
> https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/util/Arrays.java#L2654



--
This message was sent by Atlassian Jira
(v8.3.4#803005)