Fix bug in memory quota fuzzer (#27670)

* flush more thoroughly

* add reproducer

* fixes
pull/27536/head
Craig Tiller 3 years ago committed by GitHub
parent 5acc4c40a1
commit 3a78db6cdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      test/core/resource_quota/memory_quota_fuzzer.cc
  2. 21
      test/core/resource_quota/memory_quota_fuzzer_corpus/nullchk

@ -45,9 +45,13 @@ class Fuzzer {
void Run(const memory_quota_fuzzer::Msg& msg) {
grpc_core::ExecCtx exec_ctx;
RunMsg(msg);
memory_quotas_.clear();
memory_allocators_.clear();
allocations_.clear();
do {
memory_quotas_.clear();
memory_allocators_.clear();
allocations_.clear();
exec_ctx.Flush();
} while (!memory_quotas_.empty() || !memory_allocators_.empty() ||
!allocations_.empty());
}
private:

@ -0,0 +1,21 @@
actions {
create_quota {}
}
actions {
create_allocator {}
}
actions {
post_reclaimer {
msg {
actions {
create_quota {}
}
actions {
create_allocator {}
}
actions {
post_reclaimer {}
}
}
}
}
Loading…
Cancel
Save