OpenJDK / jdk / jdk
changeset 59327:f814dd59bfe9
8245137: aarch64 ICache flush depends on enabling gnu extensions
Summary: Use __builtin___clear_cache.
Reviewed-by: aph, dholmes
author | kbarrett |
---|---|
date | Mon, 18 May 2020 10:47:52 -0400 |
parents | 304e65936f8f |
children | 8d03f6bec6de |
files | src/hotspot/cpu/aarch64/icache_aarch64.hpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/hotspot/cpu/aarch64/icache_aarch64.hpp Mon May 18 10:11:10 2020 -0400 +++ b/src/hotspot/cpu/aarch64/icache_aarch64.hpp Mon May 18 10:47:52 2020 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2014, Red Hat Inc. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * @@ -34,10 +34,10 @@ public: static void initialize(); static void invalidate_word(address addr) { - __clear_cache((char *)addr, (char *)(addr + 3)); + __builtin___clear_cache((char *)addr, (char *)(addr + 3)); } static void invalidate_range(address start, int nbytes) { - __clear_cache((char *)start, (char *)(start + nbytes)); + __builtin___clear_cache((char *)start, (char *)(start + nbytes)); } };