8337716: ByteBuffer hashCode implementations are inconsistent

Reviewed-by: alanb, liach
This commit is contained in:
Brian Burkhalter 2024-08-04 15:42:51 +00:00
parent 367e0a6556
commit 8bd3cd5156
3 changed files with 24 additions and 14 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2022, 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
@ -923,9 +923,4 @@ public class ByteBuffers {
}
return r;
}
@Benchmark
public int testHeapHashCode() {
return heapByteBuffer.hashCode();
}
}