equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
49 |
49 |
50 /** |
50 /** |
51 * Package private constructor called by factory method in |
51 * Package private constructor called by factory method in |
52 * the abstract superclass Selector. |
52 * the abstract superclass Selector. |
53 */ |
53 */ |
54 PollSelectorImpl(SelectorProvider sp) { |
54 PollSelectorImpl(SelectorProvider sp) throws IOException { |
55 super(sp, 1, 1); |
55 super(sp, 1, 1); |
56 long pipeFds = IOUtil.makePipe(false); |
56 long pipeFds = IOUtil.makePipe(false); |
57 fd0 = (int) (pipeFds >>> 32); |
57 fd0 = (int) (pipeFds >>> 32); |
58 fd1 = (int) pipeFds; |
58 fd1 = (int) pipeFds; |
59 try { |
59 try { |