--- old/src/hotspot/share/runtime/globals.hpp 2020-07-12 22:24:39.215381241 +0200 +++ new/src/hotspot/share/runtime/globals.hpp 2020-07-12 22:24:38.799380446 +0200 @@ -372,15 +372,28 @@ notproduct(bool, WalkStackALot, false, \ "Trace stack (no print) at every exit from the runtime system") \ \ - develop(int, DeoptimizeObjectsALot, 0, \ - "Revert optimizations based on escape analysis at a frequency " \ - "given with DeoptimizeObjectsALotInterval=n. " \ - "0: switched off. " \ - "1: At every nth exit from the runtime system " \ - "2: Starts dedicated threads that periodically trigger the " \ - "deoptimization every n ms. The thread count is given " \ - "with DeoptimizeObjectsALotThreadCount." ) \ - range(0,2) \ + develop(bool, DeoptimizeObjectsALot, false, \ + "For testing purposes concurrent threads revert optimizations " \ + "based on escape analysis at intervals given with " \ + "DeoptimizeObjectsALotInterval=n. The thread count is given " \ + "with DeoptimizeObjectsALotThreadCountSingle and " \ + "DeoptimizeObjectsALotThreadCountAll.") \ + \ + develop(uint64_t, DeoptimizeObjectsALotInterval, 5, \ + "Interval for DeoptimizeObjectsALot.") \ + range(0, max_jlong) \ + \ + develop(int, DeoptimizeObjectsALotThreadCountSingle, 1, \ + "The number of threads that revert optimizations based on " \ + "escape analysis for a single thread if DeoptimizeObjectsALot " \ + "is enabled. The target thread is selected round robin." ) \ + range(0, max_jint) \ + \ + develop(int, DeoptimizeObjectsALotThreadCountAll, 1, \ + "The number of threads that revert optimizations based on " \ + "escape analysis for all threads if DeoptimizeObjectsALot " \ + "is enabled." ) \ + range(0, max_jint) \ \ product(bool, Debugging, false, \ "Set when executing debug methods in debug.cpp " \ @@ -1490,16 +1503,6 @@ notproduct(intx, ZombieALotInterval, 5, \ "Number of exits until ZombieALot kicks in") \ \ - develop(intx, DeoptimizeObjectsALotInterval, 5, \ - "Interval for DeoptimizeObjectsALot.") \ - \ - develop(int, DeoptimizeObjectsALotThreadCount, 1, \ - "Thread count for DeoptimizeObjectsALot=2. With 1 thread " \ - "the deoptimization is done for all java threads at once. " \ - "With more deoptimizer threads the deoptimization is done " \ - "for single java threads which get selected round robin.") \ - range(1, max_jint) \ - \ diagnostic(uintx, MallocMaxTestWords, 0, \ "If non-zero, maximum number of words that malloc/realloc can " \ "allocate (for testing only)") \