8163270: [macosx] Robot(gc) issue on dual-screen systemReviewed-by: serb, aghaisasContributed-by: manajit.halder@oracle.com