2017-11-20 13:07:44 +01:00
|
|
|
/*
|
2019-01-10 15:13:51 -05:00
|
|
|
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
|
2017-11-20 13:07:44 +01:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
*
|
|
|
|
* This code is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License version 2 only, as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
* accompanied this code).
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License version
|
|
|
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
|
|
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
* or visit www.oracle.com if you need additional information or have any
|
|
|
|
* questions.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-01-10 15:13:51 -05:00
|
|
|
#ifndef SHARE_GC_SHARED_BARRIERSETCONFIG_HPP
|
|
|
|
#define SHARE_GC_SHARED_BARRIERSETCONFIG_HPP
|
2017-11-20 13:07:44 +01:00
|
|
|
|
|
|
|
#include "utilities/macros.hpp"
|
|
|
|
|
|
|
|
// Do something for each concrete barrier set part of the build.
|
|
|
|
#define FOR_EACH_CONCRETE_BARRIER_SET_DO(f) \
|
2018-03-19 07:38:18 +01:00
|
|
|
f(CardTableBarrierSet) \
|
2018-06-12 15:03:00 +02:00
|
|
|
EPSILONGC_ONLY(f(EpsilonBarrierSet)) \
|
8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Co-authored-by: Erik Osterlund <erik.osterlund@oracle.com>
Co-authored-by: Mikael Gerdin <mikael.gerdin@oracle.com>
Co-authored-by: Kim Barrett <kim.barrett@oracle.com>
Co-authored-by: Nils Eliasson <nils.eliasson@oracle.com>
Co-authored-by: Rickard Backman <rickard.backman@oracle.com>
Co-authored-by: Roland Westrelin <rwestrel@redhat.com>
Co-authored-by: Coleen Phillimore <coleen.phillimore@oracle.com>
Co-authored-by: Robbin Ehn <robbin.ehn@oracle.com>
Co-authored-by: Gerard Ziemski <gerard.ziemski@oracle.com>
Co-authored-by: Hugh Wilkinson <hugh.wilkinson@intel.com>
Co-authored-by: Sandhya Viswanathan <sandhya.viswanathan@intel.com>
Co-authored-by: Bill Wheeler <bill.npo.wheeler@intel.com>
Co-authored-by: Vinay K. Awasthi <vinay.k.awasthi@intel.com>
Co-authored-by: Yasumasa Suenaga <yasuenag@gmail.com>
Reviewed-by: pliden, stefank, eosterlund, ehelin, sjohanss, rbackman, coleenp, ihse, jgeorge, lmesnik, rkennke
2018-06-12 17:40:28 +02:00
|
|
|
G1GC_ONLY(f(G1BarrierSet)) \
|
2018-12-10 15:47:44 +01:00
|
|
|
SHENANDOAHGC_ONLY(f(ShenandoahBarrierSet)) \
|
8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Co-authored-by: Erik Osterlund <erik.osterlund@oracle.com>
Co-authored-by: Mikael Gerdin <mikael.gerdin@oracle.com>
Co-authored-by: Kim Barrett <kim.barrett@oracle.com>
Co-authored-by: Nils Eliasson <nils.eliasson@oracle.com>
Co-authored-by: Rickard Backman <rickard.backman@oracle.com>
Co-authored-by: Roland Westrelin <rwestrel@redhat.com>
Co-authored-by: Coleen Phillimore <coleen.phillimore@oracle.com>
Co-authored-by: Robbin Ehn <robbin.ehn@oracle.com>
Co-authored-by: Gerard Ziemski <gerard.ziemski@oracle.com>
Co-authored-by: Hugh Wilkinson <hugh.wilkinson@intel.com>
Co-authored-by: Sandhya Viswanathan <sandhya.viswanathan@intel.com>
Co-authored-by: Bill Wheeler <bill.npo.wheeler@intel.com>
Co-authored-by: Vinay K. Awasthi <vinay.k.awasthi@intel.com>
Co-authored-by: Yasumasa Suenaga <yasuenag@gmail.com>
Reviewed-by: pliden, stefank, eosterlund, ehelin, sjohanss, rbackman, coleenp, ihse, jgeorge, lmesnik, rkennke
2018-06-12 17:40:28 +02:00
|
|
|
ZGC_ONLY(f(ZBarrierSet))
|
2017-11-20 13:07:44 +01:00
|
|
|
|
2018-02-26 09:34:12 +01:00
|
|
|
#define FOR_EACH_ABSTRACT_BARRIER_SET_DO(f) \
|
2018-03-06 08:36:44 +01:00
|
|
|
f(ModRef)
|
2018-02-26 09:34:12 +01:00
|
|
|
|
2017-11-20 13:07:44 +01:00
|
|
|
// Do something for each known barrier set.
|
|
|
|
#define FOR_EACH_BARRIER_SET_DO(f) \
|
2018-02-26 09:34:12 +01:00
|
|
|
FOR_EACH_ABSTRACT_BARRIER_SET_DO(f) \
|
|
|
|
FOR_EACH_CONCRETE_BARRIER_SET_DO(f)
|
2017-11-20 13:07:44 +01:00
|
|
|
|
|
|
|
// To enable runtime-resolution of GC barriers on primitives, please
|
|
|
|
// define SUPPORT_BARRIER_ON_PRIMITIVES.
|
|
|
|
#ifdef SUPPORT_BARRIER_ON_PRIMITIVES
|
2018-02-22 10:39:42 +01:00
|
|
|
#define ACCESS_PRIMITIVE_SUPPORT INTERNAL_BT_BARRIER_ON_PRIMITIVES
|
2017-11-20 13:07:44 +01:00
|
|
|
#else
|
2018-12-19 23:40:05 +01:00
|
|
|
#define ACCESS_PRIMITIVE_SUPPORT DECORATORS_NONE
|
2017-11-20 13:07:44 +01:00
|
|
|
#endif
|
|
|
|
|
2018-02-22 10:39:42 +01:00
|
|
|
#ifdef SUPPORT_NOT_TO_SPACE_INVARIANT
|
2018-12-19 23:40:05 +01:00
|
|
|
#define ACCESS_TO_SPACE_INVARIANT_SUPPORT DECORATORS_NONE
|
2018-02-22 10:39:42 +01:00
|
|
|
#else
|
|
|
|
#define ACCESS_TO_SPACE_INVARIANT_SUPPORT INTERNAL_BT_TO_SPACE_INVARIANT
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define BT_BUILDTIME_DECORATORS (ACCESS_PRIMITIVE_SUPPORT | ACCESS_TO_SPACE_INVARIANT_SUPPORT)
|
|
|
|
|
2019-01-10 15:13:51 -05:00
|
|
|
#endif // SHARE_GC_SHARED_BARRIERSETCONFIG_HPP
|