mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8337716: ByteBuffer hashCode implementations are inconsistent
Reviewed-by: alanb, liach
This commit is contained in:
parent
367e0a6556
commit
8bd3cd5156
3 changed files with 24 additions and 14 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue