databendlabs / databend

๐——๐—ฎ๐˜๐—ฎ, ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ & ๐—”๐—œ. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
https://docs.databend.com
Other
7.85k stars 750 forks source link

fix: `JEAllocator` should properly handle nullptr returned #16692

Closed dantengsky closed 2 weeks ago

dantengsky commented 2 weeks ago

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

In JEAllocator::grow_zeroed/shrink, when je rallocx returns NULL, stop proceeding, returns AllocError error directly.

Tests

Type of change


This change isโ€‚Reviewable