--- old/src/share/vm/opto/macro.cpp 2021-01-25 19:30:46.107944347 +0000 +++ new/src/share/vm/opto/macro.cpp 2021-01-25 19:30:45.974942949 +0000 @@ -1385,7 +1385,12 @@ // MemBarStoreStore so that stores that initialize this object // can't be reordered with a subsequent store that makes this // object accessible by other threads. +#ifndef AARCH64 if (init == NULL || (!init->is_complete_with_arraycopy() && !init->does_not_escape())) { +#else + if (!alloc->does_not_escape_thread() && + (init == NULL || !init->is_complete_with_arraycopy())) { +#endif if (init == NULL || init->req() < InitializeNode::RawStores) { // No InitializeNode or no stores captured by zeroing // elimination. Simply add the MemBarStoreStore after object