It works in MariaDB.
5 karma · joined July 23, 2024
Tearing can cause memory safety issue. Variant A can have an integer field and variant B can have a reference field in the same offset. Tearing can cause it to treat an integer as reference.
Linux kernel's RCU waits for all CPU cores to context switch and disables preemption when reading RCU data structure. This is not usable in normal application programming.
If it doesn't have inverse so that you cannot subtract prefix sum, sparse table can be used.