mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-15 16:09:44 +00:00
7155963: Deadlock in SystemFlavorMap.getFlavorsForNative and SunToolkit.awtLock
Reviewed-by: ant, serb
This commit is contained in:
parent
6e791e3f31
commit
fb226280bb
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -281,6 +281,11 @@ public final class XClipboard extends SunClipboard implements OwnershipListener
|
||||
}
|
||||
}
|
||||
|
||||
checkChange(formats);
|
||||
XToolkit.awtUnlock();
|
||||
try {
|
||||
checkChange(formats);
|
||||
} finally {
|
||||
XToolkit.awtLock();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user