You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.
LargeInteger* Process::NewIntegerWithGC(int64 value) {
Object* result = NewInteger(value);
if (result->IsRetryAfterGCFailure()) {
program()->CollectGarbage();
result = NewInteger(value);
if (result->IsRetryAfterGCFailure()) {
program()->CollectGarbage();
result = NewInteger(value);
}
}
return LargeInteger::cast(result);
}
It seems fragile to rely on the behaviour of trying GC'ing twice.
Better it would be to ask the gc to free at least x bytes, and let it do as many collections as necessary.
In
src/vm/process.cc
we haveIt seems fragile to rely on the behaviour of trying GC'ing twice.
Better it would be to ask the gc to free at least
x
bytes, and let it do as many collections as necessary.@DmitryOlshansky-google
The text was updated successfully, but these errors were encountered: