public static void threadThrowableHandler(Thread t, Throwable e) {
        if (AgentUtils.enableOOMExit()) {
            handleOOM(t, e);
        }
    }
ThreadUtils, used for handle specified throwable, such as oom, etc.
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/utils/ThreadUtils.java