Skip to content
Permalink
Browse files

8245137: aarch64 ICache flush depends on enabling gnu extensions

Use __builtin___clear_cache.

Reviewed-by: aph, dholmes
  • Loading branch information
Kim Barrett
Kim Barrett committed May 18, 2020
1 parent 840c305 commit b957788c329f4abcbf14ae09347f76caf28316e5
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/hotspot/cpu/aarch64/icache_aarch64.hpp
@@ -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 @@ class ICache : public AbstractICache {
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));
}
};

0 comments on commit b957788

Please sign in to comment.