< prev index next >

src/java.base/macosx/classes/sun/nio/ch/KQueueArrayWrapper.java

Print this page
rev 14210 : 8154231: Simplify access to System properties from JDK code
Reviewed-by: rriggs

*** 30,42 **** */ package sun.nio.ch; import java.io.IOException; - import java.io.FileDescriptor; import java.util.Iterator; import java.util.LinkedList; /* * struct kevent { // 32-bit 64-bit * uintptr_t ident; // 4 8 * short filter; // 2 2 --- 30,42 ---- */ package sun.nio.ch; import java.io.IOException; import java.util.Iterator; import java.util.LinkedList; + import sun.security.action.GetPropertyAction; /* * struct kevent { // 32-bit 64-bit * uintptr_t ident; // 4 8 * short filter; // 2 2
*** 82,95 **** private int incomingInterruptFD; static { IOUtil.load(); initStructSizes(); ! String datamodel = java.security.AccessController.doPrivileged( ! new sun.security.action.GetPropertyAction("sun.arch.data.model") ! ); ! is64bit = datamodel.equals("64"); } KQueueArrayWrapper() { int allocationSize = SIZEOF_KEVENT * NUM_KEVENTS; keventArray = new AllocatedNativeObject(allocationSize, true); --- 82,93 ---- private int incomingInterruptFD; static { IOUtil.load(); initStructSizes(); ! String datamodel = GetPropertyAction.getProperty("sun.arch.data.model"); ! is64bit = "64".equals(datamodel); } KQueueArrayWrapper() { int allocationSize = SIZEOF_KEVENT * NUM_KEVENTS; keventArray = new AllocatedNativeObject(allocationSize, true);
< prev index next >