hotspot/src/share/vm/opto/library_call.cpp
changeset 44634 cf2e2a4c3358
parent 44329 4e76a9a3b7a8
child 45514 0fc9cc73ce45
child 46407 32baebe49efe
--- a/hotspot/src/share/vm/opto/library_call.cpp	Wed Apr 12 11:43:49 2017 -0400
+++ b/hotspot/src/share/vm/opto/library_call.cpp	Wed Apr 12 16:36:13 2017 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2017, 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
@@ -1668,6 +1668,9 @@
   }
 
   Node* adr = array_element_address(value, index, T_CHAR);
+  if (adr->is_top()) {
+    return false;
+  }
   if (is_store) {
     (void) store_to_memory(control(), adr, ch, T_CHAR, TypeAryPtr::BYTES, MemNode::unordered,
                            false, false, true /* mismatched */);