-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
None
-
Affects Version/s: 27
-
Component/s: hotspot
-
In Review
Shenandoah's gtest ShenandoahSimpleBitMapTest takes almost two minutes to run:
```
[----------] 1 test from ShenandoahSimpleBitMapTest
[ RUN ] ShenandoahSimpleBitMapTest.minimum_test
[ OK ] ShenandoahSimpleBitMapTest.minimum_test (0 ms)
[----------] 1 test from ShenandoahSimpleBitMapTest (0 ms total)
[----------] Global test environment tear-down
[==========] 33 tests from 7 test suites ran. (137092 ms total)
```
This is largely because it inspects every word in the heap repeatedly. However, if we restrict it to a smaller section of the heap, it can be sped up significantly (137092 ms total -> 2534 ms total).
```
[----------] 1 test from ShenandoahSimpleBitMapTest
[ RUN ] ShenandoahSimpleBitMapTest.minimum_test
[ OK ] ShenandoahSimpleBitMapTest.minimum_test (0 ms)
[----------] 1 test from ShenandoahSimpleBitMapTest (0 ms total)
[----------] Global test environment tear-down
[==========] 33 tests from 7 test suites ran. (2534 ms total)
[ PASSED ] 33 tests.
```
```
[----------] 1 test from ShenandoahSimpleBitMapTest
[ RUN ] ShenandoahSimpleBitMapTest.minimum_test
[ OK ] ShenandoahSimpleBitMapTest.minimum_test (0 ms)
[----------] 1 test from ShenandoahSimpleBitMapTest (0 ms total)
[----------] Global test environment tear-down
[==========] 33 tests from 7 test suites ran. (137092 ms total)
```
This is largely because it inspects every word in the heap repeatedly. However, if we restrict it to a smaller section of the heap, it can be sped up significantly (137092 ms total -> 2534 ms total).
```
[----------] 1 test from ShenandoahSimpleBitMapTest
[ RUN ] ShenandoahSimpleBitMapTest.minimum_test
[ OK ] ShenandoahSimpleBitMapTest.minimum_test (0 ms)
[----------] 1 test from ShenandoahSimpleBitMapTest (0 ms total)
[----------] Global test environment tear-down
[==========] 33 tests from 7 test suites ran. (2534 ms total)
[ PASSED ] 33 tests.
```
- links to
-
Review(master)
openjdk/jdk/30011