You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ch...@apache.org on 2024/07/09 11:17:46 UTC
(lucene) branch main updated: Add link to OpenJDK JIRA issue for VectorUtil::xorBitCount
This is an automated email from the ASF dual-hosted git repository.
chegar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new 4baaedaa670 Add link to OpenJDK JIRA issue for VectorUtil::xorBitCount
4baaedaa670 is described below
commit 4baaedaa67046adeed19cdc28a346c1ebc9e8b5d
Author: ChrisHegarty <ch...@gmail.com>
AuthorDate: Tue Jul 9 12:17:21 2024 +0100
Add link to OpenJDK JIRA issue for VectorUtil::xorBitCount
---
lucene/core/src/java/org/apache/lucene/util/VectorUtil.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lucene/core/src/java/org/apache/lucene/util/VectorUtil.java b/lucene/core/src/java/org/apache/lucene/util/VectorUtil.java
index 5f4deea6b72..0ae563c8701 100644
--- a/lucene/core/src/java/org/apache/lucene/util/VectorUtil.java
+++ b/lucene/core/src/java/org/apache/lucene/util/VectorUtil.java
@@ -215,8 +215,8 @@ public final class VectorUtil {
/**
* For xorBitCount we stride over the values as either 64-bits (long) or 32-bits (int) at a time.
* On ARM Long::bitCount is not vectorized, and therefore produces less than optimal code, when
- * compared to Integer::bitCount. While Long::bitCount is optimal on x64. TODO: include the
- * OpenJDK JIRA url
+ * compared to Integer::bitCount. While Long::bitCount is optimal on x64. See
+ * https://bugs.openjdk.org/browse/JDK-8336000
*/
static final boolean XOR_BIT_COUNT_STRIDE_AS_INT = Constants.OS_ARCH.equals("aarch64");