370 #### AOT_JDK
371
372 See [Testing Ahead-of-time optimizations](#testing-ahead-of-time-optimizations).
373
374 ### JTReg keywords
375
376 #### JOBS
377
378 The test concurrency (`-concurrency`).
379
380 Defaults to TEST_JOBS (if set by `--with-test-jobs=`), otherwise it defaults to
381 JOBS, except for Hotspot, where the default is *number of CPU cores/2*, but
382 never more than *memory size in GB/2*.
383
384 #### TIMEOUT_FACTOR
385
386 The `TIMEOUT_FACTOR` is forwarded to JTReg framework itself
387 (`-timeoutFactor`). Also, some test cases that programmatically wait a
388 certain amount of time will apply this factor. If we run in forced
389 compilation mode (`-Xcomp`), the build system will automatically
390 adjust this factor to compensate for less performance. Defaults to 1.
391
392 #### FAILURE_HANDLER_TIMEOUT
393
394 Sets the argument `-timeoutHandlerTimeout` for JTReg. The default value is 0.
395 This is only valid if the failure handler is built.
396
397 #### TEST_THREAD_FACTORY
398
399 Sets the `-testThreadFactory` for JTReg. It should be the fully qualified
400 classname of a class which implements `java.util.concurrent.ThreadFactory`. One
401 such implementation class, named Virtual, is currently part of the JDK build in
402 the `test/jtreg_test_thread_factory/` directory. This class gets compiled
403 during the test image build. The implementation of the Virtual class creates a
404 new virtual thread for executing each test class.
405
406 #### JVMTI_STRESS_AGENT
407
408 Executes JTReg tests with JVM TI stress agent. The stress agent is the part of
409 test library and located in `test/lib/jdk/test/lib/jvmti/libJvmtiStressAgent.cpp`.
410 The value of this argument is set as JVM TI agent options.
|
370 #### AOT_JDK
371
372 See [Testing Ahead-of-time optimizations](#testing-ahead-of-time-optimizations).
373
374 ### JTReg keywords
375
376 #### JOBS
377
378 The test concurrency (`-concurrency`).
379
380 Defaults to TEST_JOBS (if set by `--with-test-jobs=`), otherwise it defaults to
381 JOBS, except for Hotspot, where the default is *number of CPU cores/2*, but
382 never more than *memory size in GB/2*.
383
384 #### TIMEOUT_FACTOR
385
386 The `TIMEOUT_FACTOR` is forwarded to JTReg framework itself
387 (`-timeoutFactor`). Also, some test cases that programmatically wait a
388 certain amount of time will apply this factor. If we run in forced
389 compilation mode (`-Xcomp`), the build system will automatically
390 adjust this factor to compensate for less performance. Defaults to 4.
391
392 #### FAILURE_HANDLER_TIMEOUT
393
394 Sets the argument `-timeoutHandlerTimeout` for JTReg. The default value is 0.
395 This is only valid if the failure handler is built.
396
397 #### TEST_THREAD_FACTORY
398
399 Sets the `-testThreadFactory` for JTReg. It should be the fully qualified
400 classname of a class which implements `java.util.concurrent.ThreadFactory`. One
401 such implementation class, named Virtual, is currently part of the JDK build in
402 the `test/jtreg_test_thread_factory/` directory. This class gets compiled
403 during the test image build. The implementation of the Virtual class creates a
404 new virtual thread for executing each test class.
405
406 #### JVMTI_STRESS_AGENT
407
408 Executes JTReg tests with JVM TI stress agent. The stress agent is the part of
409 test library and located in `test/lib/jdk/test/lib/jvmti/libJvmtiStressAgent.cpp`.
410 The value of this argument is set as JVM TI agent options.
|