mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
Merge pull request #10880 from hercules-ci/bdwgc-8.2.6-has-sp-corrector
bdw-gc 8.2.6 has sp corrector
This commit is contained in:
commit
12355e7ac5
2 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ struct CachedEvalError : EvalError
|
||||||
class EvalCache : public std::enable_shared_from_this<EvalCache>
|
class EvalCache : public std::enable_shared_from_this<EvalCache>
|
||||||
{
|
{
|
||||||
friend class AttrCursor;
|
friend class AttrCursor;
|
||||||
friend class CachedEvalError;
|
friend struct CachedEvalError;
|
||||||
|
|
||||||
std::shared_ptr<AttrDb> db;
|
std::shared_ptr<AttrDb> db;
|
||||||
EvalState & state;
|
EvalState & state;
|
||||||
|
@ -87,7 +87,7 @@ typedef std::variant<
|
||||||
class AttrCursor : public std::enable_shared_from_this<AttrCursor>
|
class AttrCursor : public std::enable_shared_from_this<AttrCursor>
|
||||||
{
|
{
|
||||||
friend class EvalCache;
|
friend class EvalCache;
|
||||||
friend class CachedEvalError;
|
friend struct CachedEvalError;
|
||||||
|
|
||||||
ref<EvalCache> root;
|
ref<EvalCache> root;
|
||||||
typedef std::optional<std::pair<std::shared_ptr<AttrCursor>, Symbol>> Parent;
|
typedef std::optional<std::pair<std::shared_ptr<AttrCursor>, Symbol>> Parent;
|
||||||
|
|
|
@ -354,7 +354,7 @@ void initGC()
|
||||||
// TODO: Remove __APPLE__ condition.
|
// TODO: Remove __APPLE__ condition.
|
||||||
// Comment suggests an implementation that works on darwin and windows
|
// Comment suggests an implementation that works on darwin and windows
|
||||||
// https://github.com/ivmai/bdwgc/issues/362#issuecomment-1936672196
|
// https://github.com/ivmai/bdwgc/issues/362#issuecomment-1936672196
|
||||||
#if GC_VERSION_MAJOR >= 8 && GC_VERSION_MINOR >= 4 && !defined(__APPLE__)
|
#if GC_VERSION_MAJOR >= 8 && GC_VERSION_MINOR >= 2 && GC_VERSION_MICRO >= 4 && !defined(__APPLE__)
|
||||||
GC_set_sp_corrector(&fixupBoehmStackPointer);
|
GC_set_sp_corrector(&fixupBoehmStackPointer);
|
||||||
|
|
||||||
if (!GC_get_sp_corrector()) {
|
if (!GC_get_sp_corrector()) {
|
||||||
|
@ -365,7 +365,7 @@ void initGC()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#warning "BoehmGC version does not support GC while coroutine exists. GC will be disabled inside coroutines. Consider updating bwd-gc to 8.4 or later."
|
#warning "BoehmGC version does not support GC while coroutine exists. GC will be disabled inside coroutines. Consider updating bdw-gc to 8.2.4 or later."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue