--- a/hotspot/src/share/vm/opto/callnode.cpp Wed Aug 12 09:58:39 2015 +0300
+++ b/hotspot/src/share/vm/opto/callnode.cpp Sat Aug 15 02:54:18 2015 +0200
@@ -742,7 +742,7 @@
//
bool CallNode::may_modify(const TypeOopPtr *t_oop, PhaseTransform *phase) {
assert((t_oop != NULL), "sanity");
- if (is_call_to_arraycopystub()) {
+ if (is_call_to_arraycopystub() && strcmp(_name, "unsafe_arraycopy") != 0) {
const TypeTuple* args = _tf->domain();
Node* dest = NULL;
// Stubs that can be called once an ArrayCopyNode is expanded have