[autodiff] Fix global data access rule checker memory allocation (#5801)
[autodiff] Fix global data access rule checker memory allocation (#5801)


yuanming-hu/taichi,yuanming-hu/taichi,yuanming-hu/taichi,yuanming-hu/taichi