Add sys_parameter: _force_explict_500_malloc && Make the 500 anti-fallback test effective

This commit is contained in:
obdev
2023-06-06 04:12:22 +00:00
committed by ob-robot
parent 56e4920428
commit 6307df5985
18 changed files with 95 additions and 120 deletions

View File

@ -131,7 +131,6 @@ public:
void print_tenant_ctx_memory_usage(uint64_t tenant_id) const;
void print_tenant_memory_usage(uint64_t tenant_id) const;
void print_malloc_sample(uint64_t tenant_id) const;
int set_tenant_ctx_idle(
const uint64_t tenant_id, const uint64_t ctx_id, const int64_t size, const bool reserve = false);
int64_t sync_wash(uint64_t tenant_id, uint64_t from_ctx_id, int64_t wash_size);
@ -156,6 +155,8 @@ private:
public:
bool enable_tenant_leak_memory_protection_ = true;
#endif
public:
bool force_explict_500_malloc_ = false;
private:
DISALLOW_COPY_AND_ASSIGN(ObMallocAllocator);
class BucketLock