# HG changeset patch # User serb # Date 1567881516 25200 # Node ID 3020baa4efa49d97ca7d37ad112b7b28ebfdc915 # Parent 18e7ed2cd7d13f2b925c2e489077b5ba08881cf8 8229515: [macos] access to window property of NSView on wrong thread Reviewed-by: prr, dmarkov diff -r 18e7ed2cd7d1 -r 3020baa4efa4 src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m --- a/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m Wed Sep 04 10:12:42 2019 +0200 +++ b/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m Sat Sep 07 11:38:36 2019 -0700 @@ -1408,10 +1408,8 @@ JNF_COCOA_ENTER(env); NSView *view = (NSView *)jlong_to_ptr(viewPtr); - NSWindow *window = [view window]; - [ThreadUtilities performOnMainThreadWaiting:YES block:^(){ - + NSWindow *window = [view window]; ret = (jint)[[AWTWindow getNSWindowDisplayID_AppKitThread: window] intValue]; }];