xo-gc: + X1CollectorConfig.with_name()
This commit is contained in:
parent
a4f655d621
commit
01c63418fd
2 changed files with 14 additions and 15 deletions
|
|
@ -17,7 +17,12 @@ namespace xo {
|
|||
using size_type = std::size_t;
|
||||
|
||||
/** copy of this config,
|
||||
* with @c arena_config_.size_ set to @p gen_z
|
||||
* but with @ref name_ set to @p name
|
||||
**/
|
||||
X1CollectorConfig with_name(std::string name);
|
||||
|
||||
/** copy of this config,
|
||||
* but with @c arena_config_.size_ set to @p gen_z
|
||||
**/
|
||||
X1CollectorConfig with_size(std::size_t gen_z);
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,14 @@ namespace xo {
|
|||
|
||||
namespace mm {
|
||||
|
||||
X1CollectorConfig
|
||||
X1CollectorConfig::with_name(std::string name)
|
||||
{
|
||||
X1CollectorConfig copy = *this;
|
||||
copy.name_ = std::move(name);
|
||||
return copy;
|
||||
}
|
||||
|
||||
X1CollectorConfig
|
||||
X1CollectorConfig::with_size(std::size_t gen_z)
|
||||
{
|
||||
|
|
@ -33,20 +41,6 @@ namespace xo {
|
|||
return copy;
|
||||
}
|
||||
|
||||
#ifdef NOT_USING
|
||||
constexpr std::uint64_t
|
||||
X1CollectorConfig::gen_mult() const {
|
||||
return 1ul << arena_config_.header_size_bits_;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef NOT_USING
|
||||
constexpr std::uint64_t
|
||||
X1CollectorConfig::tseq_mult() const {
|
||||
return 1ul << (gen_bits_ + arena_config_.header_size_bits_);
|
||||
}
|
||||
#endif
|
||||
|
||||
// ----- GCRunState -----
|
||||
|
||||
GCRunState::GCRunState(generation gc_upto)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue