8177346: hotspot change for 8176513 breaks jdk9 build on Ubuntu 16.04
Reviewed-by: dholmes, kvn, vlivanov
--- a/hotspot/src/share/vm/opto/library_call.cpp Thu Mar 23 22:57:41 2017 +0000
+++ b/hotspot/src/share/vm/opto/library_call.cpp Fri Mar 24 08:56:04 2017 -0700
@@ -2372,7 +2372,7 @@
// the barriers get omitted and the unsafe reference begins to "pollute"
// the alias analysis of the rest of the graph, either Compile::can_alias
// or Compile::must_alias will throw a diagnostic assert.)
- bool need_mem_bar;
+ bool need_mem_bar = false;
switch (kind) {
case Relaxed:
need_mem_bar = mismatched && !adr_type->isa_aryptr();