equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright (c) 2012, 2016 SAP SE. All rights reserved. |
3 * Copyright (c) 2012, 2017 SAP SE. All rights reserved. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
8 * published by the Free Software Foundation. |
8 * published by the Free Software Foundation. |
151 // object and xlc cannot compile the expression offsetof(DataLayout, |
151 // object and xlc cannot compile the expression offsetof(DataLayout, |
152 // _cells[index]) in DataLayout::cell_offset() . Therefore we define |
152 // _cells[index]) in DataLayout::cell_offset() . Therefore we define |
153 // offset_of as it is defined for gcc. |
153 // offset_of as it is defined for gcc. |
154 #define offset_of(klass,field) (size_t)((intx)&(((klass*)16)->field) - 16) |
154 #define offset_of(klass,field) (size_t)((intx)&(((klass*)16)->field) - 16) |
155 |
155 |
|
156 // AIX 5.3 has buggy __thread support. (see JDK-8176442). |
|
157 #define USE_LIBRARY_BASED_TLS_ONLY 1 |
|
158 |
156 #ifndef USE_LIBRARY_BASED_TLS_ONLY |
159 #ifndef USE_LIBRARY_BASED_TLS_ONLY |
157 #define THREAD_LOCAL_DECL __thread |
160 #define THREAD_LOCAL_DECL __thread |
158 #endif |
161 #endif |
159 |
162 |
160 // Inlining support |
163 // Inlining support |