--- old/src/os_cpu/linux_zero/vm/os_linux_zero.hpp 2017-05-26 18:30:55.822608575 -0400 +++ new/src/os_cpu/linux_zero/vm/os_linux_zero.hpp 2017-05-26 18:30:55.706602842 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. * Copyright 2007, 2008, 2010 Red Hat, Inc. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * @@ -35,7 +35,7 @@ static bool register_code_area(char *low, char *high) { return true; } // Atomically copy 64 bits of data - static void atomic_copy64(volatile void *src, volatile void *dst) { + static void atomic_copy64(const volatile void *src, volatile void *dst) { #if defined(PPC32) double tmp; asm volatile ("lfd %0, 0(%1)\n" @@ -49,7 +49,7 @@ : "=r"(tmp) : "a"(src), "a"(dst)); #else - *(jlong *) dst = *(jlong *) src; + *(jlong *) dst = *(const jlong *) src; #endif }