File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ static void
11
11
streaming_compress_mark (void * p )
12
12
{
13
13
struct streaming_compress_t * sc = p ;
14
- rb_gc_mark ((VALUE )sc -> ctx );
14
+ // rb_gc_mark((VALUE)sc->ctx);
15
15
rb_gc_mark (sc -> buf );
16
16
rb_gc_mark (sc -> buf_size );
17
17
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ static void
10
10
streaming_decompress_mark (void * p )
11
11
{
12
12
struct streaming_decompress_t * sd = p ;
13
- rb_gc_mark ((VALUE )sd -> ctx );
13
+ // rb_gc_mark((VALUE)sd->ctx);
14
14
rb_gc_mark (sd -> buf );
15
15
rb_gc_mark (sd -> buf_size );
16
16
}
Original file line number Diff line number Diff line change 11
11
end
12
12
end
13
13
14
+ describe '<< + GC.compat' do
15
+ it 'shoud work' do
16
+ stream = Zstd ::StreamingCompress . new
17
+ stream << "abc" << "def"
18
+ GC . compact
19
+ stream << "ghi"
20
+ res = stream . finish
21
+ expect ( Zstd . decompress ( res ) ) . to eq ( 'abcdefghi' )
22
+ end
23
+ end
24
+
14
25
describe '<< + flush' do
15
26
it 'shoud work' do
16
27
stream = Zstd ::StreamingCompress . new
You can’t perform that action at this time.
0 commit comments