!4923 修正CalculateContextSize使用正确的结构体
Merge pull request !4923 from chenxiaobin/fixMemcheck
This commit is contained in:
@ -434,7 +434,11 @@ void SetInstrNull()
|
||||
|
||||
void CalculateContextSize(MemoryContext ctx, int64* memory_size)
|
||||
{
|
||||
#ifndef ENABLE_MEMORY_CHECK
|
||||
AllocSetContext* aset = (AllocSetContext*)ctx;
|
||||
#else
|
||||
AsanSetContext* aset = (AsanSetContext*)ctx;
|
||||
#endif
|
||||
MemoryContext child;
|
||||
|
||||
if (ctx == NULL)
|
||||
|
||||
@ -75,7 +75,6 @@ extern void shmem_exit(int code);
|
||||
extern void on_proc_exit(pg_on_exit_callback function, Datum arg);
|
||||
extern void before_shmem_exit(pg_on_exit_callback function, Datum arg);
|
||||
extern void on_shmem_exit(pg_on_exit_callback function, Datum arg);
|
||||
extern void before_shmem_exit(pg_on_exit_callback function, Datum arg);
|
||||
extern void cancel_shmem_exit(pg_on_exit_callback function, Datum arg);
|
||||
extern void on_exit_reset(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user