Skip to content

Commit ce9d6c8

Browse files
Rename SIZE_POOL_COUNT to HEAP_COUNT in tests
1 parent 51a3f08 commit ce9d6c8

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

test/ruby/test_gc_compact.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def test_updating_references_for_heap_allocated_shared_arrays
207207
end
208208

209209
def test_updating_references_for_embed_shared_arrays
210-
omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
210+
omit if GC::INTERNAL_CONSTANTS[:HEAP_COUNT] == 1
211211

212212
assert_separately(%w[-robjspace], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 10)
213213
begin;
@@ -256,7 +256,7 @@ def test_updating_references_for_heap_allocated_frozen_shared_arrays
256256
end
257257

258258
def test_updating_references_for_embed_frozen_shared_arrays
259-
omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
259+
omit if GC::INTERNAL_CONSTANTS[:HEAP_COUNT] == 1
260260

261261
assert_separately(%w[-robjspace], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 10)
262262
begin;
@@ -284,7 +284,7 @@ def test_updating_references_for_embed_frozen_shared_arrays
284284
end
285285

286286
def test_moving_arrays_down_heaps
287-
omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
287+
omit if GC::INTERNAL_CONSTANTS[:HEAP_COUNT] == 1
288288

289289
assert_separately(%w[-robjspace], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 10)
290290
begin;
@@ -306,7 +306,7 @@ def test_moving_arrays_down_heaps
306306
end
307307

308308
def test_moving_arrays_up_heaps
309-
omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
309+
omit if GC::INTERNAL_CONSTANTS[:HEAP_COUNT] == 1
310310

311311
assert_separately(%w[-robjspace], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 10)
312312
begin;
@@ -330,7 +330,7 @@ def test_moving_arrays_up_heaps
330330
end
331331

332332
def test_moving_objects_between_heaps
333-
omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
333+
omit if GC::INTERNAL_CONSTANTS[:HEAP_COUNT] == 1
334334

335335
assert_separately(%w[-robjspace], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 60)
336336
begin;
@@ -362,7 +362,7 @@ def add_ivars
362362
end
363363

364364
def test_compact_objects_of_varying_sizes
365-
omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
365+
omit if GC::INTERNAL_CONSTANTS[:HEAP_COUNT] == 1
366366

367367
assert_ruby_status([], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 10)
368368
begin;
@@ -378,7 +378,7 @@ def test_compact_objects_of_varying_sizes
378378
end
379379

380380
def test_moving_strings_up_heaps
381-
omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
381+
omit if GC::INTERNAL_CONSTANTS[:HEAP_COUNT] == 1
382382

383383
assert_separately(%w[-robjspace], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 30)
384384
begin;
@@ -399,7 +399,7 @@ def test_moving_strings_up_heaps
399399
end
400400

401401
def test_moving_strings_down_heaps
402-
omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
402+
omit if GC::INTERNAL_CONSTANTS[:HEAP_COUNT] == 1
403403

404404
assert_separately(%w[-robjspace], "#{<<~"begin;"}\n#{<<~"end;"}", timeout: 30)
405405
begin;
@@ -419,7 +419,7 @@ def test_moving_strings_down_heaps
419419
end
420420

421421
def test_moving_hashes_down_heaps
422-
omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
422+
omit if GC::INTERNAL_CONSTANTS[:HEAP_COUNT] == 1
423423
# AR and ST hashes are in the same size pool on 32 bit
424424
omit unless RbConfig::SIZEOF["uint64_t"] <= RbConfig::SIZEOF["void*"]
425425

test/ruby/test_time.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ def test_memsize
14211421
# Time objects are common in some code, try to keep them small
14221422
omit "Time object size test" if /^(?:i.?86|x86_64)-linux/ !~ RUBY_PLATFORM
14231423
omit "GC is in debug" if GC::INTERNAL_CONSTANTS[:RVALUE_OVERHEAD] > 0
1424-
omit "memsize is not accurate due to using malloc_usable_size" if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
1424+
omit "memsize is not accurate due to using malloc_usable_size" if GC::INTERNAL_CONSTANTS[:HEAP_COUNT] == 1
14251425
omit "Only run this test on 64-bit" if RbConfig::SIZEOF["void*"] != 8
14261426

14271427
require 'objspace'

0 commit comments

Comments
 (0)