Skip to content

Commit 2f449e9

Browse files
committed
[Truffle] Allocate number of bytes, not number of ints.
1 parent 3ad03a5 commit 2f449e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

truffle/src/main/java/org/jruby/truffle/runtime/sockets/LinuxFDSet.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class LinuxFDSet implements FDSet {
2424
private final Pointer bitmap;
2525

2626
public LinuxFDSet() {
27-
bitmap = memoryManager.allocateDirect(MAX_FDS / FIELD_SIZE_IN_BITS);
27+
bitmap = memoryManager.allocateDirect(MAX_FDS / 8);
2828
}
2929

3030
@Override

0 commit comments

Comments
 (0)