<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/objspace/test_objspace.rb, branch v3_3_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>ObjectSpace.dump: handle Module#set_temporary_name (#12068)</title>
<updated>2024-11-12T19:20:36+00:00</updated>
<author>
<name>Jean byroot Boussier</name>
<email>jean.boussier+github@shopify.com</email>
</author>
<published>2024-11-12T19:20:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a24570a62a584478a7dde5dd716b5c88fe86e9e5'/>
<id>a24570a62a584478a7dde5dd716b5c88fe86e9e5</id>
<content type='text'>
ObjectSpace.dump: handle Module#set_temporary_name

[Bug #20892]

Until the introduction of that method, it was impossible for a
Module name not to be valid JSON, hence it wasn't going through
the slower escaping function.

This assumption no longer hold.

Co-authored-by: Jean Boussier &lt;jean.boussier@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ObjectSpace.dump: handle Module#set_temporary_name

[Bug #20892]

Until the introduction of that method, it was impossible for a
Module name not to be valid JSON, hence it wasn't going through
the slower escaping function.

This assumption no longer hold.

Co-authored-by: Jean Boussier &lt;jean.boussier@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Skip a flaky objspace test on Visual Studio</title>
<updated>2023-12-07T17:42:56+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2023-12-07T17:41:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1721bb9dc6dcc3ecec05e9d6f72654099460ef50'/>
<id>1721bb9dc6dcc3ecec05e9d6f72654099460ef50</id>
<content type='text'>
This seems to happen only on VisualStudio:
https://github.com/ruby/ruby/actions/runs/7130917319/job/19418375386

It fails relatively frequently. Nobody seems actively working on it, so
let's skip it until somebody starts working on it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This seems to happen only on VisualStudio:
https://github.com/ruby/ruby/actions/runs/7130917319/job/19418375386

It fails relatively frequently. Nobody seems actively working on it, so
let's skip it until somebody starts working on it.
</pre>
</div>
</content>
</entry>
<entry>
<title>objspace_dump.c: dump call cache ids with dump_append_id</title>
<updated>2023-11-22T09:24:35+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>byroot@ruby-lang.org</email>
</author>
<published>2023-11-22T08:16:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6391ae9ebc0b7a6668e57aa9f3c7b76ff83fab70'/>
<id>6391ae9ebc0b7a6668e57aa9f3c7b76ff83fab70</id>
<content type='text'>
Not all `ID` have an associated string.

Fixes a SEGFAULT in ObjectSpace.dump_all spec.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Not all `ID` have an associated string.

Fixes a SEGFAULT in ObjectSpace.dump_all spec.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Fix crash caused by concurrent ObjectSpace.dump_all calls"</title>
<updated>2023-11-13T07:57:57+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2023-11-13T07:13:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a1887f4dc2e62455a605944468e59e647f698f1a'/>
<id>a1887f4dc2e62455a605944468e59e647f698f1a</id>
<content type='text'>
This reverts commit 9a62fd3cbae2ebb60e2f9cad782af1ad18db4319.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 9a62fd3cbae2ebb60e2f9cad782af1ad18db4319.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix crash caused by concurrent ObjectSpace.dump_all calls</title>
<updated>2023-11-12T16:50:37+00:00</updated>
<author>
<name>KJ Tsanaktsidis</name>
<email>ktsanaktsidis@zendesk.com</email>
</author>
<published>2023-11-07T11:08:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9a62fd3cbae2ebb60e2f9cad782af1ad18db4319'/>
<id>9a62fd3cbae2ebb60e2f9cad782af1ad18db4319</id>
<content type='text'>
Since the callback defined in the objspace module might give up the GVL,
we need to make sure the right cr-&gt;mfd value is set back after the GVL
is re-obtained.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since the callback defined in the objspace module might give up the GVL,
we need to make sure the right cr-&gt;mfd value is set back after the GVL
is re-obtained.
</pre>
</div>
</content>
</entry>
<entry>
<title>String#force_encoding don't clear coderange if encoding is unchanged</title>
<updated>2023-11-09T11:38:10+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>byroot@ruby-lang.org</email>
</author>
<published>2023-11-08T13:05:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ea1b1ea1aa98bc9488564ef18aa4032aa1cb5536'/>
<id>ea1b1ea1aa98bc9488564ef18aa4032aa1cb5536</id>
<content type='text'>
Some code out there blind calls `force_encoding` without checking
what the original encoding was, which clears the coderange uselessly.

If the String is big, it can be a rather costly mistake.

For instance the `rack-utf8_sanitizer` gem does this on request
bodies.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some code out there blind calls `force_encoding` without checking
what the original encoding was, which clears the coderange uselessly.

If the String is big, it can be a rather costly mistake.

For instance the `rack-utf8_sanitizer` gem does this on request
bodies.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix ObjectSpace.dump with super() callinfo</title>
<updated>2023-10-12T08:22:32+00:00</updated>
<author>
<name>John Hawthorn</name>
<email>john@hawthorn.email</email>
</author>
<published>2023-10-11T18:09:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=635b92099e7ddd1b2eca065134efcfdc7ad7bab3'/>
<id>635b92099e7ddd1b2eca065134efcfdc7ad7bab3</id>
<content type='text'>
super() uses 0 as mid for its callinfo, so we need to check for that to
avoid a segfault when using dump_all.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
super() uses 0 as mid for its callinfo, so we need to check for that to
avoid a segfault when using dump_all.
</pre>
</div>
</content>
</entry>
<entry>
<title>Move the PC regardless of the leaf flag (#8232)</title>
<updated>2023-08-17T03:28:33+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2023-08-17T03:28:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e210b899dc803607bef1b395ace02dc9f96554ea'/>
<id>e210b899dc803607bef1b395ace02dc9f96554ea</id>
<content type='text'>
Co-authored-by: Alan Wu &lt;alansi.xingwu@shopify.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Alan Wu &lt;alansi.xingwu@shopify.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Remove assumption about object order</title>
<updated>2023-07-18T18:52:37+00:00</updated>
<author>
<name>Peter Zhu</name>
<email>peter@peterzhu.ca</email>
</author>
<published>2023-07-18T15:00:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ecbedf9bf125b158c683dd6f69ce966653cc9a33'/>
<id>ecbedf9bf125b158c683dd6f69ce966653cc9a33</id>
<content type='text'>
The address of objects can't be assumed since a later object may be
allocate in a swept slot.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The address of objects can't be assumed since a later object may be
allocate in a swept slot.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix flaky test in test_objspace.rb</title>
<updated>2023-05-31T18:03:30+00:00</updated>
<author>
<name>Peter Zhu</name>
<email>peter@peterzhu.ca</email>
</author>
<published>2023-05-31T18:01:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e8212c55f9a00ef5722ab8c6c093d418d581bcd2'/>
<id>e8212c55f9a00ef5722ab8c6c093d418d581bcd2</id>
<content type='text'>
Ensure that the frozen string is promoted to the old generation by
running the GC 4 times.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ensure that the frozen string is promoted to the old generation by
running the GC 4 times.
</pre>
</div>
</content>
</entry>
</feed>
