Hi, Alex. Why you need a separate flag since you can use the ref.get()!=0? and the ref is set if the block is executed.
----- alexander.zvegint...@oracle.com wrote: > Hi all, > > please review the fix > > http://cr.openjdk.java.net/~azvegint/jdk/9/8178996/00/ > > for the issue > > https://bugs.openjdk.java.net/browse/JDK-8178996 > > > Popup doesn't show up due to owner is lightweight frame and doesn't > have > a native pointer, > > thus we do not invoke owner.execute() code block, while > nativeCreateNSWindow should be called with null ownerPtr. > > > -- > Thanks, > Alexander.