Skip to content
Permalink
Browse files
8273635: Attempting to acquire lock StackWatermark_lock/9 out of orde…
…r with lock tty_lock/3

Reviewed-by: dholmes, eosterlund
  • Loading branch information
coleenp committed Sep 14, 2021
1 parent 31667da commit 1d3eb147ee7dd9b237d3cf633a5792544f8cac30
Showing 2 changed files with 4 additions and 4 deletions.
@@ -45,10 +45,10 @@ class Mutex : public CHeapObj<mtSynchronizer> {
// 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,
@@ -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

1 comment on commit 1d3eb14

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 1d3eb14 Sep 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.