Skip to content

Commit b86cd41

Browse files
authored
Merge branch 'openjdk:master' into master
2 parents 9d77834 + e307b5c commit b86cd41

29 files changed

+79
-79
lines changed

src/hotspot/cpu/riscv/c2_MacroAssembler_riscv.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,16 +1952,15 @@ void C2_MacroAssembler::arrays_hashcode(Register ary, Register cnt, Register res
19521952
mv(pow31_3, 29791); // [31^^3]
19531953
mv(pow31_2, 961); // [31^^2]
19541954

1955-
slli(chunks_end, chunks, chunks_end_shift);
1956-
add(chunks_end, ary, chunks_end);
1955+
shadd(chunks_end, chunks, ary, t0, chunks_end_shift);
19571956
andi(cnt, cnt, stride - 1); // don't forget about tail!
19581957

19591958
bind(WIDE_LOOP);
1960-
mulw(result, result, pow31_4); // 31^^4 * h
19611959
arrays_hashcode_elload(t0, Address(ary, 0 * elsize), eltype);
19621960
arrays_hashcode_elload(t1, Address(ary, 1 * elsize), eltype);
19631961
arrays_hashcode_elload(tmp5, Address(ary, 2 * elsize), eltype);
19641962
arrays_hashcode_elload(tmp6, Address(ary, 3 * elsize), eltype);
1963+
mulw(result, result, pow31_4); // 31^^4 * h
19651964
mulw(t0, t0, pow31_3); // 31^^3 * ary[i+0]
19661965
addw(result, result, t0);
19671966
mulw(t1, t1, pow31_2); // 31^^2 * ary[i+1]
@@ -1976,8 +1975,7 @@ void C2_MacroAssembler::arrays_hashcode(Register ary, Register cnt, Register res
19761975
beqz(cnt, DONE);
19771976

19781977
bind(TAIL);
1979-
slli(chunks_end, cnt, chunks_end_shift);
1980-
add(chunks_end, ary, chunks_end);
1978+
shadd(chunks_end, cnt, ary, t0, chunks_end_shift);
19811979

19821980
bind(TAIL_LOOP);
19831981
arrays_hashcode_elload(t0, Address(ary), eltype);

src/hotspot/share/utilities/align.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "utilities/debug.hpp"
3131
#include "utilities/globalDefinitions.hpp"
3232
#include "utilities/powerOfTwo.hpp"
33+
3334
#include <type_traits>
3435

3536
// Compute mask to use for aligning to or testing alignment.

src/hotspot/share/utilities/concurrentHashTableTasks.inline.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
// No concurrentHashTableTasks.hpp
2929

3030
#include "runtime/atomic.hpp"
31-
#include "utilities/globalDefinitions.hpp"
3231
#include "utilities/concurrentHashTable.inline.hpp"
32+
#include "utilities/globalDefinitions.hpp"
3333

3434
// This inline file contains BulkDeleteTask and GrowTasks which are both bucket
3535
// operations, which they are serialized with each other.

src/hotspot/share/utilities/copy.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
*
2323
*/
2424

25-
#include "utilities/copy.hpp"
2625
#include "runtime/sharedRuntime.hpp"
2726
#include "utilities/align.hpp"
2827
#include "utilities/byteswap.hpp"

src/hotspot/share/utilities/debug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
#include "utilities/unsigned5.hpp"
6464
#include "utilities/vmError.hpp"
6565

66-
#include <stdio.h>
6766
#include <stdarg.h>
67+
#include <stdio.h>
6868

6969
// These functions needs to be exported on Windows only
7070
#define DEBUGEXPORT WINDOWS_ONLY(JNIEXPORT)

src/hotspot/share/utilities/elfFile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
#include "utilities/elfSymbolTable.hpp"
3737
#include "utilities/ostream.hpp"
3838

39-
#include <string.h>
40-
#include <stdio.h>
4139
#include <limits.h>
4240
#include <new>
41+
#include <stdio.h>
42+
#include <string.h>
4343

4444
const char* ElfFile::USR_LIB_DEBUG_DIRECTORY = "/usr/lib/debug";
4545

src/hotspot/share/utilities/elfFile.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ typedef Elf32_Sym Elf_Sym;
6767
#endif
6868
#endif
6969

70-
#include "jvm_md.h"
7170
#include "globalDefinitions.hpp"
71+
#include "jvm_md.h"
7272
#include "memory/allocation.hpp"
7373
#include "utilities/checkedCast.hpp"
7474
#include "utilities/decoder.hpp"

src/hotspot/share/utilities/exceptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
#include "memory/resourceArea.hpp"
3333
#include "memory/universe.hpp"
3434
#include "oops/oop.inline.hpp"
35+
#include "runtime/atomic.hpp"
3536
#include "runtime/handles.inline.hpp"
3637
#include "runtime/init.hpp"
3738
#include "runtime/java.hpp"
3839
#include "runtime/javaCalls.hpp"
3940
#include "runtime/javaThread.hpp"
4041
#include "runtime/os.hpp"
41-
#include "runtime/atomic.hpp"
4242
#include "utilities/events.hpp"
4343
#include "utilities/exceptions.hpp"
4444
#include "utilities/utf8.hpp"

src/hotspot/share/utilities/fakeRttiSupport.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
#ifndef SHARE_UTILITIES_FAKERTTISUPPORT_HPP
2626
#define SHARE_UTILITIES_FAKERTTISUPPORT_HPP
2727

28-
#include "utilities/globalDefinitions.hpp"
2928
#include "utilities/debug.hpp"
29+
#include "utilities/globalDefinitions.hpp"
3030

3131
// Provides support for checked downcasts in a hierarchy of classes.
3232
// The base class provides a member of this type, specialized on that

src/hotspot/share/utilities/globalDefinitions.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@
2525
#ifndef SHARE_UTILITIES_GLOBALDEFINITIONS_HPP
2626
#define SHARE_UTILITIES_GLOBALDEFINITIONS_HPP
2727

28+
// Get constants like JVM_T_CHAR and JVM_SIGNATURE_INT, before pulling in <jvm.h>.
29+
#include "classfile_constants.h"
2830
#include "utilities/compilerWarnings.hpp"
2931
#include "utilities/debug.hpp"
3032
#include "utilities/forbiddenFunctions.hpp"
3133
#include "utilities/macros.hpp"
3234

33-
// Get constants like JVM_T_CHAR and JVM_SIGNATURE_INT, before pulling in <jvm.h>.
34-
#include "classfile_constants.h"
35-
3635
#include COMPILER_HEADER(utilities/globalDefinitions)
3736

3837
#include <cstddef>

0 commit comments

Comments
 (0)