[前][次][番号順一覧][スレッド一覧]

ruby-changes:65095

From: Nobuyoshi <ko1@a...>
Date: Sun, 31 Jan 2021 17:48:34 +0900 (JST)
Subject: [ruby-changes:65095] e44870c225 (master): Removed static assertion about size of `RVALUE`

https://git.ruby-lang.org/ruby.git/commit/?id=e44870c225

From e44870c2253a47c0fa989a4a188a7164735fec03 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 31 Jan 2021 17:45:35 +0900
Subject: Removed static assertion about size of `RVALUE`

It is unable where unaligned word access is disallowed and
`double` is wider than pointers.
---
 gc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/gc.c b/gc.c
index fa294b1..ad44859 100644
--- a/gc.c
+++ b/gc.c
@@ -608,8 +608,6 @@ typedef struct RVALUE { https://github.com/ruby/ruby/blob/trunk/gc.c#L608
 #pragma pack(pop)
 #endif
 
-STATIC_ASSERT(sizeof_rvalue, sizeof(RVALUE) == 5*SIZEOF_VALUE);
-
 typedef uintptr_t bits_t;
 enum {
     BITS_SIZE = sizeof(bits_t),
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]