14 lines
571 B
Diff
14 lines
571 B
Diff
Use ~0u instead of -1 to shift an unsigned value.
|
|
|
|
--- openjdk/hotspot/src/share/vm/code/dependencies.hpp
|
|
+++ openjdk/hotspot/src/share/vm/code/dependencies.hpp
|
|
@@ -166,7 +166,7 @@
|
|
LG2_TYPE_LIMIT = 4, // assert(TYPE_LIMIT <= (1<<LG2_TYPE_LIMIT))
|
|
|
|
// handy categorizations of dependency types:
|
|
- all_types = ((1 << TYPE_LIMIT) - 1) & ((-1) << FIRST_TYPE),
|
|
+ all_types = ((1 << TYPE_LIMIT) - 1) & (~0u << FIRST_TYPE),
|
|
|
|
non_klass_types = (1 << call_site_target_value),
|
|
klass_types = all_types & ~non_klass_types,
|