Skip to content

Commit 2f8653f

Browse files
committed
8248666: AArch64: Use THREAD_LOCAL instead of __thread
__thread is gcc-ism, instead rely on compiler independent macro. Reviewed-by: dholmes
1 parent 1b1c1cd commit 2f8653f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hotspot/cpu/aarch64/frame_aarch64.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -658,10 +658,10 @@ intptr_t* frame::real_fp() const {
658658
p[frame::name##_offset], #name); \
659659
}
660660

661-
static __thread uintptr_t nextfp;
662-
static __thread uintptr_t nextpc;
663-
static __thread uintptr_t nextsp;
664-
static __thread RegisterMap *reg_map;
661+
static THREAD_LOCAL uintptr_t nextfp;
662+
static THREAD_LOCAL uintptr_t nextpc;
663+
static THREAD_LOCAL uintptr_t nextsp;
664+
static THREAD_LOCAL RegisterMap *reg_map;
665665

666666
static void printbc(Method *m, intptr_t bcx) {
667667
const char *name;

0 commit comments

Comments
 (0)