diff --git a/src/hotspot/share/runtime/mutex.hpp b/src/hotspot/share/runtime/mutex.hpp index 4fe7ba557bc5..82479267918d 100644 --- a/src/hotspot/share/runtime/mutex.hpp +++ b/src/hotspot/share/runtime/mutex.hpp @@ -45,10 +45,10 @@ class Mutex : public CHeapObj { // Special low level locks are given names and ranges avoid overlap. enum lock_types { event, - tty = event + 3, - service = tty + 3, + service = event + 3, stackwatermark = service + 3, - special = stackwatermark + 3, + tty = stackwatermark + 3, + special = tty + 3, oopstorage = special + 3, leaf = oopstorage + 2, safepoint = leaf + 10, diff --git a/test/hotspot/jtreg/compiler/uncommontrap/TestDeoptOOM.java b/test/hotspot/jtreg/compiler/uncommontrap/TestDeoptOOM.java index bc0fb1bc9e13..5469e2abbe8c 100644 --- a/test/hotspot/jtreg/compiler/uncommontrap/TestDeoptOOM.java +++ b/test/hotspot/jtreg/compiler/uncommontrap/TestDeoptOOM.java @@ -36,7 +36,7 @@ /* * @test * @bug 8273456 - * @summary Test that ttyLock isn't held when taking StackWatermark_lock + * @summary Test that ttyLock is ranked above StackWatermark_lock * @requires !vm.graal.enabled & vm.gc.Z * @run main/othervm -XX:-BackgroundCompilation -Xmx128M -XX:+IgnoreUnrecognizedVMOptions -XX:+VerifyStack * -XX:CompileCommand=exclude,compiler.uncommontrap.TestDeoptOOM::main