changeset 55685:1e069abb87b1 cont

fix linux build
author rpressler
date Tue, 11 Jun 2019 19:59:48 +0100
parents af0ae27750b4
children 5856922bda38 5d65b33ac2d9
files src/hotspot/share/runtime/continuation.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/runtime/continuation.cpp	Tue Jun 11 16:12:03 2019 +0100
+++ b/src/hotspot/share/runtime/continuation.cpp	Tue Jun 11 19:59:48 2019 +0100
@@ -3567,7 +3567,7 @@
   if (ConfigT::_post_barrier) {
     OopT* from = (OopT*)old_array->base() + old_start;
     OopT* to   = (OopT*)new_array->base() + new_start;
-    memcpy(to, from, count * sizeof(OopT));
+    memcpy((void*)to, (void*)from, count * sizeof(OopT));
     barrier_set_cast<ModRefBarrierSet>(BarrierSet::barrier_set())->write_ref_array((HeapWord*)to, count);
   } else {
     // Requires the array is zeroed (see G1BarrierSet::write_ref_array_pre_work)