From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 779A41F542 for ; Sun, 11 Jun 2023 21:33:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yhbt.net; s=selector1; t=1686519208; bh=W8zwNIPObmAXeVqUpV0W+FAuEBX5kHxYs3NPdKHg2+A=; h=From:To:Subject:Date:From; b=4NF4+rXFBKt2WOMmdsjqUuW2IB2tfDRvj0iWx/zQJP1lGn9hdWFxcf07GzySDWJbK 6nzoU/R3tuQ7bmaB81aGp/LAiYeMUAC5WIdlKb2oPU+TjyhiILZs3Sr9yQRIXA28rH 6VVMbZXPs1t94ML6UoyvZiHsNBxX3ZHx+L61MNeQ= From: Eric Wong To: raindrops-public@yhbt.net Subject: [PATCH 0/4] minor modernizations and cleanups Date: Sun, 11 Jun 2023 21:33:24 +0000 Message-Id: <20230611213328.379546-1-bofh@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: alloca use was dangerous for architectures with >4K pages, and we can avoid some Ruby #to_io dispatches in some places. Eric Wong (4): avoid unnecessary #to_io calls my_fileno: use rb_io_check_closed for Ruby <3.1 linux_inet_diag: get rid of alloca usage test_linux_reuseport_tcp_listen_stats: skip w/o unicorn ext/raindrops/linux_inet_diag.c | 23 +++++++++++-------- ext/raindrops/my_fileno.h | 16 ++++--------- ext/raindrops/tcp_info.c | 2 +- test/test_linux_reuseport_tcp_listen_stats.rb | 2 +- 4 files changed, 20 insertions(+), 23 deletions(-)