< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahPadding.hpp

Print this page

 8  *
 9  * This code is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12  * version 2 for more details (a copy is included in the LICENSE file that
13  * accompanied this code).
14  *
15  * You should have received a copy of the GNU General Public License version
16  * 2 along with this work; if not, write to the Free Software Foundation,
17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18  *
19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20  * or visit www.oracle.com if you need additional information or have any
21  * questions.
22  *
23  */
24 
25 #ifndef SHARE_GC_SHENANDOAH_SHENANDOAHPADDING_HPP
26 #define SHARE_GC_SHENANDOAH_SHENANDOAHPADDING_HPP
27 


28 // 64 bytes is enough to cover all existing architectures. If we have some
29 // other platforms, we would need to provide the architecture-specific
30 // versions here. Shared code provides DEFAULT_CACHE_LINE_SIZE, which is
31 // inconveniently large by default.
32 
33 #define SHENANDOAH_CACHE_LINE_SIZE 64
34 
35 #define shenandoah_padding(id) \
36   DEFINE_PAD_MINUS_SIZE(id, SHENANDOAH_CACHE_LINE_SIZE, 0)
37 
38 #endif // SHARE_GC_SHENANDOAH_SHENANDOAHPADDING_HPP

 8  *
 9  * This code is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12  * version 2 for more details (a copy is included in the LICENSE file that
13  * accompanied this code).
14  *
15  * You should have received a copy of the GNU General Public License version
16  * 2 along with this work; if not, write to the Free Software Foundation,
17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18  *
19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20  * or visit www.oracle.com if you need additional information or have any
21  * questions.
22  *
23  */
24 
25 #ifndef SHARE_GC_SHENANDOAH_SHENANDOAHPADDING_HPP
26 #define SHARE_GC_SHENANDOAH_SHENANDOAHPADDING_HPP
27 
28 #include "memory/padded.hpp"
29 
30 // 64 bytes is enough to cover all existing architectures. If we have some
31 // other platforms, we would need to provide the architecture-specific
32 // versions here. Shared code provides DEFAULT_CACHE_LINE_SIZE, which is
33 // inconveniently large by default.
34 
35 #define SHENANDOAH_CACHE_LINE_SIZE 64
36 
37 #define shenandoah_padding(id) \
38   DEFINE_PAD_MINUS_SIZE(id, SHENANDOAH_CACHE_LINE_SIZE, 0)
39 
40 #endif // SHARE_GC_SHENANDOAH_SHENANDOAHPADDING_HPP
< prev index next >