<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/ruby/test_struct.rb, branch v4.0.2</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Increase the rehearsal count</title>
<updated>2025-09-06T12:57:30+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-09-06T12:22:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=de1feea72ebee7a96931d44c7d3dd21e23ebfcf2'/>
<id>de1feea72ebee7a96931d44c7d3dd21e23ebfcf2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #21440] Stop caching member list in frozen Data/Struct class</title>
<updated>2025-06-13T05:22:06+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-06-13T05:15:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2e7e78cd590d20aa9d41422e96302f3edd73f623'/>
<id>2e7e78cd590d20aa9d41422e96302f3edd73f623</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>skip the test now we couldn't fix</title>
<updated>2025-05-23T06:03:10+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2025-05-23T03:22:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=64c520fc25278c653cb19cd88633c3f112301e8c'/>
<id>64c520fc25278c653cb19cd88633c3f112301e8c</id>
<content type='text'>
The following error is reported repeatedly on my riscv64-linux machine, so just skipt it.
I hope someone investigate it.

```
  1) Error:
TestStruct::SubStruct#test_named_structs_are_not_rooted:
Test::Unit::ProxyError: execution of Test::Unit::CoreAssertions#assert_no_memory_leak expired timeout (10 sec)
pid 1113858 killed by SIGTERM (signal 15)
| ruby 3.5.0dev (2025-05-22T21:05:12Z master 9583b7af8f) +PRISM [riscv64-linux]
|
| [7;1m1096282:1747967727.622:d70f:[mSTART={peak:453828608,size:453763072,lck:0,pin:0,hwm:9601024,rss:9601024,data:445943808,stk:135168,exe:4096,lib:7450624,pte:77824,swap:0}
| [7;1m1096282:1747967727.622:d70f:[mFINAL={peak:457502720,size:457498624,lck:0,pin:0,hwm:13312000,rss:13312000,data:449679360,stk:135168,exe:4096,lib:7450624,pte:86016,swap:0}
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The following error is reported repeatedly on my riscv64-linux machine, so just skipt it.
I hope someone investigate it.

```
  1) Error:
TestStruct::SubStruct#test_named_structs_are_not_rooted:
Test::Unit::ProxyError: execution of Test::Unit::CoreAssertions#assert_no_memory_leak expired timeout (10 sec)
pid 1113858 killed by SIGTERM (signal 15)
| ruby 3.5.0dev (2025-05-22T21:05:12Z master 9583b7af8f) +PRISM [riscv64-linux]
|
| [7;1m1096282:1747967727.622:d70f:[mSTART={peak:453828608,size:453763072,lck:0,pin:0,hwm:9601024,rss:9601024,data:445943808,stk:135168,exe:4096,lib:7450624,pte:77824,swap:0}
| [7;1m1096282:1747967727.622:d70f:[mFINAL={peak:457502720,size:457498624,lck:0,pin:0,hwm:13312000,rss:13312000,data:449679360,stk:135168,exe:4096,lib:7450624,pte:86016,swap:0}
```
</pre>
</div>
</content>
</entry>
<entry>
<title>Make Struct memory leak test faster</title>
<updated>2024-03-01T15:33:09+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>byroot@ruby-lang.org</email>
</author>
<published>2024-03-01T14:07:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f3af5ae7e6c1c096bbfe46d69de825a02b1696cf'/>
<id>f3af5ae7e6c1c096bbfe46d69de825a02b1696cf</id>
<content type='text'>
[Bug #20311]

It times out on some platform, so we can reduce iterations.
On my machine it completes in 250ms and RSS grows 8X.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Bug #20311]

It times out on some platform, so we can reduce iterations.
On my machine it completes in 250ms and RSS grows 8X.
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't pin named structs defined in Ruby</title>
<updated>2024-03-01T07:23:38+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>byroot@ruby-lang.org</email>
</author>
<published>2024-02-29T12:17:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e626da82eae3d437b84d4f9ead0164d436b08e1a'/>
<id>e626da82eae3d437b84d4f9ead0164d436b08e1a</id>
<content type='text'>
[Bug #20311]

`rb_define_class_under` assumes it's called from C and that the
reference might be held in a C global variable, so it adds the
class to the VM root.

In the case of `Struct.new('Name')` it's wasteful and make
the struct immortal.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Bug #20311]

`rb_define_class_under` assumes it's called from C and that the
reference might be held in a C global variable, so it adds the
class to the VM root.

In the case of `Struct.new('Name')` it's wasteful and make
the struct immortal.
</pre>
</div>
</content>
</entry>
<entry>
<title>When alloc size is too large, only allocate struct</title>
<updated>2023-06-12T14:20:05+00:00</updated>
<author>
<name>Matt Valentine-House</name>
<email>matt@eightbitraptor.com</email>
</author>
<published>2023-06-12T12:13:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6fe46ff967215e47ab2234e9b48663d2e3608081'/>
<id>6fe46ff967215e47ab2234e9b48663d2e3608081</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>A positional Hash is not keyword arguments [Bug #18632]</title>
<updated>2022-03-17T11:53:41+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-03-17T09:54:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e660b934b98943826f888f2b73f773c6411cd199'/>
<id>e660b934b98943826f888f2b73f773c6411cd199</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Initialize Struct by calling with keyword arguments</title>
<updated>2021-12-26T14:28:54+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-12-26T13:39:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c956f979e5d05900315d2753d5c3b1389af8dae4'/>
<id>c956f979e5d05900315d2753d5c3b1389af8dae4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Pass UnboundMethod to 2nd arg of define_method</title>
<updated>2021-12-13T01:23:52+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2021-12-12T17:11:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5164c2b36f66e7b1d2e0f908663ee3f3a3830605'/>
<id>5164c2b36f66e7b1d2e0f908663ee3f3a3830605</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix Struct's setter arity</title>
<updated>2021-12-13T01:23:52+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2021-12-12T17:02:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=fdfb43b2b129afb78c352c95776118eeceb245a2'/>
<id>fdfb43b2b129afb78c352c95776118eeceb245a2</id>
<content type='text'>
https://github.com/ruby/ruby/pull/5131/files#diff-b2553d23e6b1fe76e20608d06c25f6acca06279100f1a9c24febcd79a82fac3cR2689
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/ruby/pull/5131/files#diff-b2553d23e6b1fe76e20608d06c25f6acca06279100f1a9c24febcd79a82fac3cR2689
</pre>
</div>
</content>
</entry>
</feed>
