From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Adding extra fields to float_block and cons_block? Date: Wed, 22 Sep 2021 20:54:10 +0800 Message-ID: <875yuszs7h.fsf@yahoo.com> References: <875yuszs7h.fsf.ref@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23564"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 22 14:55:20 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mT1mS-0005z8-Hd for ged-emacs-devel@m.gmane-mx.org; Wed, 22 Sep 2021 14:55:20 +0200 Original-Received: from localhost ([::1]:52908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mT1mQ-0001Of-Kt for ged-emacs-devel@m.gmane-mx.org; Wed, 22 Sep 2021 08:55:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mT1lV-0000iQ-FM for emacs-devel@gnu.org; Wed, 22 Sep 2021 08:54:21 -0400 Original-Received: from sonic307-56.consmr.mail.ne1.yahoo.com ([66.163.190.31]:46068) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mT1lT-0008Js-Ds for emacs-devel@gnu.org; Wed, 22 Sep 2021 08:54:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1632315257; bh=Z7mVGpP6ClKUxf80WO5K2an47FQxS3RQpVj8xiBFN5U=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=ICnOcakKZDTtneVke7WftWAdFMAlBTZOcrwp7TARd1fMU2LDQieoWS07e+VCh3qrSfUcmB9T7j9sCKmDgYTV4Ut+iKIMCKlrDO0jYC+4CsQKk4VKYzpeRJ2BooYCEIIB8tJ3j/jv9JiXVviZI2Mpe5wkfF0p01AnGnQ2dtw5aCMJrwaSlFpCpSOV14M73/JWYCuPnrOiIVXj82Fq3f4Ery1tSZjYML3nhogEDelvam9vzYdiBIUA2+i4jmpo3lTMMrb8OXtwuWKM2fQ2GmOlWpbE6OfqN5nCkiIeJBN09V9yT7c+iNfe7JWN2iC6nE+aim3GoGtvO89r1f7PCQ54Ew== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1632315257; bh=BPASefITh3SLzxs7kEzHyVfiVooYdopUxIvPucHYON4=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=VCYMxLlj8Wh6gBl6en6hFOxv+KHw3UiovvrTCo5Vi/sgPPEVYBfRykvh0vO5loUX5hEsJ/r3S4NwZ/EqYLmrIw1uUxG4TUaLfFDqyuz9AgzJ63ZFFUS/p7Hhw577Wp6HHFNG3ltKQicHZq36fOB1D6Ffq5uvUCKCY/sUhBjJWj0IQ9iQ6LoyBJ6XJ1YqQL9+8RT+lBFFVzLPg4YdW2xmD0byyVHFe8fRFrwnOc9cQ/3c1dgTJaw/PSNwYVwTXO88VH9K6vgFFM8OQmimiUzXMPgA89Uzo8gxUgw2Igty4PZYTUtZ6BDFpc4Ht9ENP/JOqBmmuDK08CZkapy/4nXSNg== X-YMail-OSG: 9Xm2FlwVM1mZesK7LtCA6ELBrZ87_rvJ6c27_GGsU1JCd.OlbVAm9l1t7MZllQs _srz_8V.gImBau7CuhO5Ktif50agfA4FD7v14f1gjEYU_ULyUfGbx9HwE_MD615blk7AlofAeHgW auMhJXDUlzQDYZu_HHhJaQOfc_A62x.oYV74cTwp2H_vXNZlpmJFRg2LCQBqhqVWQ8c_Bhtvfswb GaoNwMSM5O3z9Vu1ULkfwrawnXS0EVfwd79VByOzl_V9gYnbeDspCy3FA6ixx6J1bIkLdkszvRvO Cvyzau5BJzqWmgrmzbOJHCvsHwH0Wz0UgZRwrC8crr4F3Y0FwhBQniE1.16IH3uBlm5d1.qovlex t3fmOjIF_Ck02wPWbNro3W1xgNkRewzpvLRXKd8lI03yabDVE99iYpHSJN20dxQYV.98WDUMY8sM IAJ.iUoyGhSjHHPnsZqgO0fKuGUJFTWSYrJ0J.dnlY2DsEwws7FHIZFZmZeU.eNMDT3cfaXcHrL. C9AcOd60evOYmYWsjkkJbdO43GPKIAqylMP_8sD.AnLdack.ZxUIvrxWfxnvUCWCjI7mAiU1ieav mO8b95WLMqkNRE9eyyoWP6ZMEiry7mpp.mKVNE2c4ByBUneFHZrH8U3G.8645j.5AaIgxKe35a59 sIcDVnkDHg7DJe6HQoKpepJDKSZ4RQi5hh09lnrVbfmlbiDfOuwfZQWlPXrCxroJEklD5T5TqALG nHjBC8byXdMk.3U2WfxVuCsiknQxLUOx_qN02AMhgCNFqna2H_80Q9ikF.1r.p2AiI18v_uczhg6 GWC1Zg3a2j9AYDl0YrYtRpsleZRYVhfiScEafukIkw X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Wed, 22 Sep 2021 12:54:17 +0000 Original-Received: by kubenode503.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 9f38c5b64966c1d8b01fc05b79e8fdec; Wed, 22 Sep 2021 12:54:13 +0000 (UTC) X-Mailer: WebService/1.1.19043 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.31; envelope-from=luangruo@yahoo.com; helo=sonic307-56.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:275315 Archived-At: I tried adding an extra array of bits_words to cons_block and float_block, in alloc.c, defined as follows: bits_word gc_pushed_to_stack_ps[1 + FLOAT_BLOCK_SIZE / BITS_PER_BITS_WORD]; But now Emacs crashes with: alloc.c:1252: Emacs fatal error: assertion failed: nbytes <= BLOCK_BYTES Fatal error 6: Aborted I can't seem to figure out the hairy mess surrounding that code, and I'd appreciate it if someone could explain the proper procedure for adding extra fields to those two structs. Thanks.