When running the jtreg test
gc/z/TestMappedCacheHarvest.java
with ubsan-enabled binaries on macOS aarch64, we following ubsan error is reported :
stderr: [/jdk/src/hotspot/share/gc/z/zDirector.cpp:715:33: runtime error: 6.1962e+10 is outside the range of representable values of type 'unsigned int'
#0 0x109e368fc in select_worker_threads(ZDirectorStats const&, unsigned int, ZWorkerSelectionType) zDirector.cpp:715
#1 0x109e3658c in initial_workers(ZDirectorStats const&, ZWorkerSelectionType) zDirector.cpp:804
#2 0x109e35df0 in ZDirector::run_thread() zDirector.cpp:932
#3 0x109ecd5f4 in ZThread::run_service() zThread.cpp:28
#4 0x108cd1e50 in ConcurrentGCThread::run() concurrentGCThread.cpp:47
#5 0x109ce770c in Thread::call_run() thread.cpp:243
#6 0x10985be28 in thread_native_entry(Thread*) os_bsd.cpp:599
#7 0x19fa8ef90 in _pthread_start+0x84 (libsystem_pthread.dylib:arm64e+0x6f90)
#8 0x19fa89d30 in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d30)
gc/z/TestMappedCacheHarvest.java
with ubsan-enabled binaries on macOS aarch64, we following ubsan error is reported :
stderr: [/jdk/src/hotspot/share/gc/z/zDirector.cpp:715:33: runtime error: 6.1962e+10 is outside the range of representable values of type 'unsigned int'
#0 0x109e368fc in select_worker_threads(ZDirectorStats const&, unsigned int, ZWorkerSelectionType) zDirector.cpp:715
#1 0x109e3658c in initial_workers(ZDirectorStats const&, ZWorkerSelectionType) zDirector.cpp:804
#2 0x109e35df0 in ZDirector::run_thread() zDirector.cpp:932
#3 0x109ecd5f4 in ZThread::run_service() zThread.cpp:28
#4 0x108cd1e50 in ConcurrentGCThread::run() concurrentGCThread.cpp:47
#5 0x109ce770c in Thread::call_run() thread.cpp:243
#6 0x10985be28 in thread_native_entry(Thread*) os_bsd.cpp:599
#7 0x19fa8ef90 in _pthread_start+0x84 (libsystem_pthread.dylib:arm64e+0x6f90)
#8 0x19fa89d30 in thread_start+0x4 (libsystem_pthread.dylib:arm64e+0x1d30)