Package io.netty.util.internal
Class PlatformDependent
java.lang.Object
io.netty.util.internal.PlatformDependent
Utility that detects various properties specific to the current runtime
environment, such as Java version and the availability of the
sun.misc.Unsafe
object.
You can disable the use of sun.misc.Unsafe
if you specify
the system property io.netty.noUnsafe.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
private static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final String[]
static final boolean
private static final int
private static final long
private static final boolean
private static final Cleaner
private static final boolean
private static final AtomicLong
private static final long
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final String
private static final String
private static final InternalLogger
private static final int
private static final long
private static Pattern
private static final boolean
private static final int
private static final int
private static final Cleaner
private static final String
private static final String
private static final String[]
private static final PlatformDependent.ThreadLocalRandomProvider
private static final File
private static final int
private static final Throwable
private static final boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
Adds only those classifier strings to dest which are present in allowed.(package private) static void
addFilesystemOsClassifiers
(Set<String> allowedClassifiers, Set<String> availableClassifiers) (package private) static boolean
addPropertyOsClassifiers
(Set<String> allowedClassifiers, Set<String> availableClassifiers) static int
Return the address size of the OS.private static int
static long
align
(long value, int alignment) static ByteBuffer
alignDirectBuffer
(ByteBuffer buffer, int alignment) static ByteBuffer
allocateDirectNoCleaner
(int capacity) Allocate a newByteBuffer
with the givencapacity
.static long
allocateMemory
(long size) static byte[]
allocateUninitializedArray
(int size) static int
bitMode()
Returns the bit mode of the current VM (usually 32 or 64.)private static int
bitMode0()
static long
private static long
static boolean
Returnstrue
if and only if it is fine to enable TCP_NODELAY socket option by default.static void
copyMemory
(byte[] src, int srcIndex, byte[] dst, int dstIndex, long length) static void
copyMemory
(byte[] src, int srcIndex, long dstAddr, long length) static void
copyMemory
(long srcAddr, byte[] dst, int dstIndex, long length) static void
copyMemory
(long srcAddr, long dstAddr, long length) static File
createTempFile
(String prefix, String suffix, File directory) private static void
decrementMemoryCounter
(int capacity) static ByteBuffer
directBuffer
(long memoryAddress, int size) static long
directBufferAddress
(ByteBuffer buffer) static boolean
Returnstrue
if the platform has reliable low-level direct buffer access API and a user has not specified-Dio.netty.noPreferDirect
option.static boolean
equals
(byte[] bytes1, int startPos1, byte[] bytes2, int startPos2, int length) Compare twobyte
arrays for equality.static int
equalsConstantTime
(byte[] bytes1, int startPos1, byte[] bytes2, int startPos2, int length) Compare twobyte
arrays for equality without leaking timing information.private static boolean
equalsSafe
(byte[] bytes1, int startPos1, byte[] bytes2, int startPos2, int length) static long
Compute an estimate of the maximum amount of direct memory available to this JVM.static void
freeDirectBuffer
(ByteBuffer buffer) Try to deallocate the specified directByteBuffer
.static void
freeDirectNoCleaner
(ByteBuffer buffer) This method MUST only be called forByteBuffer
s that were allocated viaallocateDirectNoCleaner(int)
.static void
freeMemory
(long address) static byte
getByte
(byte[] data, int index) static byte
getByte
(byte[] data, long index) static byte
getByte
(long address) static ClassLoader
getClassLoader
(Class<?> clazz) Return theClassLoader
for the givenClass
.static ClassLoader
Return the contextClassLoader
for the currentThread
.static int
getInt
(byte[] data, int index) static int
getInt
(int[] data, long index) static int
getInt
(long address) static int
private static int
getIntSafe
(byte[] bytes, int offset) static int
getIntVolatile
(long address) static long
getLong
(byte[] data, int index) static long
getLong
(long address) static long
getLong
(long[] data, long index) private static long
getLongSafe
(byte[] bytes, int offset) private static Pattern
static Object
static short
getShort
(byte[] data, int index) static short
getShort
(long address) private static short
getShortSafe
(byte[] bytes, int offset) static ClassLoader
Return the systemClassLoader
.static Throwable
Return the reason (if any) whysun.misc.Unsafe
was not available.static boolean
static boolean
static int
hashCodeAscii
(byte[] bytes, int startPos, int length) Calculate a hash code of a byte array assuming ASCII character encoding.static int
hashCodeAscii
(CharSequence bytes) Calculate a hash code of a byte array assuming ASCII character encoding.private static int
hashCodeAsciiCompute
(CharSequence value, int offset, int hash) Identical toPlatformDependent0.hashCodeAsciiCompute(long, int)
but forCharSequence
.(package private) static int
hashCodeAsciiSafe
(byte[] bytes, int startPos, int length) Package private for testing purposes only!private static int
hashCodeAsciiSanitizeByte
(char value) Identical toPlatformDependent0.hashCodeAsciiSanitize(byte)
but forCharSequence
.private static int
hashCodeAsciiSanitizeInt
(CharSequence value, int offset) Identical toPlatformDependent0.hashCodeAsciiSanitize(int)
but forCharSequence
.private static int
hashCodeAsciiSanitizeShort
(CharSequence value, int offset) Identical toPlatformDependent0.hashCodeAsciiSanitize(short)
but forCharSequence
.static boolean
Returntrue
ifsun.misc.Unsafe
was found on the classpath and can be used for accelerated direct memory access.private static void
incrementMemoryCounter
(int capacity) static boolean
Returnstrue
if and only if the current platform is Androidstatic boolean
private static boolean
static boolean
isJ9Jvm()
private static boolean
isJ9Jvm0()
static boolean
isOsx()
Returntrue
if the JVM is running on OSX / MacOSprivate static boolean
isOsx0()
static boolean
true
if and only if the platform supports unaligned access.static boolean
Returntrue
if the JVM is running on Windowsprivate static boolean
static boolean
isZero
(byte[] bytes, int startPos, int length) Determine if a subsection of an array is zero.private static boolean
isZeroSafe
(byte[] bytes, int startPos, int length) static int
Return the version of Java under which this library is used.static long
Returns the maximum memory reserved for direct buffer allocation.static boolean
Returntrue
if the current user may be a super-user.private static boolean
static <C> Deque
<C> Returns a new concurrentDeque
.static <K,
V> ConcurrentMap <K, V> Creates a new fastestConcurrentMap
implementation for the current platform.static <K,
V> ConcurrentMap <K, V> newConcurrentHashMap
(int initialCapacity) Creates a new fastestConcurrentMap
implementation for the current platform.static <K,
V> ConcurrentMap <K, V> newConcurrentHashMap
(int initialCapacity, float loadFactor) Creates a new fastestConcurrentMap
implementation for the current platform.static <K,
V> ConcurrentMap <K, V> newConcurrentHashMap
(int initialCapacity, float loadFactor, int concurrencyLevel) Creates a new fastestConcurrentMap
implementation for the current platform.static <K,
V> ConcurrentMap <K, V> newConcurrentHashMap
(Map<? extends K, ? extends V> map) Creates a new fastestConcurrentMap
implementation for the current platform.static <T> Queue
<T> newFixedMpmcQueue
(int capacity) Create a newQueue
which is safe to use for multiple producers (different threads) and multiple consumers with the given fixescapacity
.static <T> Queue
<T> newFixedMpscQueue
(int capacity) Create a newQueue
which is safe to use for multiple producers (different threads) and a single consumer (one thread!) with the given fixescapacity
.static LongCounter
Creates a new fastestLongCounter
implementation for the current platform.static <T> Queue
<T> Create a newQueue
which is safe to use for multiple producers (different threads) and a single consumer (one thread!).static <T> Queue
<T> newMpscQueue
(int maxCapacity) Create a newQueue
which is safe to use for multiple producers (different threads) and a single consumer (one thread!).static <T> Queue
<T> newMpscQueue
(int chunkSize, int maxCapacity) Create a newQueue
which is safe to use for multiple producers (different threads) and a single consumer (one thread!).static <T> Queue
<T> Create a newQueue
which is safe to use for single producer (one thread!) and a single consumer (one thread!).private static String
private static String
normalizeArch
(String value) static String
static String
private static String
normalizeOs
(String value) private static String
static long
objectFieldOffset
(Field field) static void
putByte
(byte[] data, int index, byte value) static void
putByte
(long address, byte value) static void
static void
putInt
(byte[] data, int index, int value) static void
putInt
(long address, int value) static void
putIntOrdered
(long adddress, int newValue) static void
putLong
(byte[] data, int index, long value) static void
putLong
(long address, long value) static void
static void
putShort
(byte[] data, int index, short value) static void
putShort
(long address, short value) static ByteBuffer
reallocateDirectNoCleaner
(ByteBuffer buffer, int capacity) Reallocate a newByteBuffer
with the givencapacity
.static long
reallocateMemory
(long address, long newSize) (package private) static void
safeConstructPutInt
(Object object, long fieldOffset, int value) static void
setMemory
(byte[] dst, int dstIndex, long bytes, byte value) static void
setMemory
(long address, long bytes, byte value) static Random
Return aRandom
which is not-threadsafe and so can only be used from the same thread.static void
Raises an exception bypassing compiler checks for checked exceptions.private static <E extends Throwable>
voidstatic File
tmpdir()
Returns the temporary directory.private static File
tmpdir0()
private static File
toDirectory
(String path) private static int
toIntExact
(long value) private static int
toIntExact8
(long value) private static Throwable
static long
Returns the current memory reserved for direct buffer allocation.static boolean
-
Field Details
-
logger
-
MAX_DIRECT_MEMORY_SIZE_ARG_PATTERN
-
MAYBE_SUPER_USER
private static final boolean MAYBE_SUPER_USER -
CAN_ENABLE_TCP_NODELAY_BY_DEFAULT
private static final boolean CAN_ENABLE_TCP_NODELAY_BY_DEFAULT -
UNSAFE_UNAVAILABILITY_CAUSE
-
DIRECT_BUFFER_PREFERRED
private static final boolean DIRECT_BUFFER_PREFERRED -
MAX_DIRECT_MEMORY
private static final long MAX_DIRECT_MEMORY -
MPSC_CHUNK_SIZE
private static final int MPSC_CHUNK_SIZE- See Also:
-
MIN_MAX_MPSC_CAPACITY
private static final int MIN_MAX_MPSC_CAPACITY- See Also:
-
MAX_ALLOWED_MPSC_CAPACITY
private static final int MAX_ALLOWED_MPSC_CAPACITY- See Also:
-
BYTE_ARRAY_BASE_OFFSET
private static final long BYTE_ARRAY_BASE_OFFSET -
TMPDIR
-
BIT_MODE
private static final int BIT_MODE -
NORMALIZED_ARCH
-
NORMALIZED_OS
-
ALLOWED_LINUX_OS_CLASSIFIERS
-
LINUX_OS_CLASSIFIERS
-
IS_WINDOWS
private static final boolean IS_WINDOWS -
IS_OSX
private static final boolean IS_OSX -
IS_J9_JVM
private static final boolean IS_J9_JVM -
IS_IVKVM_DOT_NET
private static final boolean IS_IVKVM_DOT_NET -
ADDRESS_SIZE
private static final int ADDRESS_SIZE -
USE_DIRECT_BUFFER_NO_CLEANER
private static final boolean USE_DIRECT_BUFFER_NO_CLEANER -
DIRECT_MEMORY_COUNTER
-
DIRECT_MEMORY_LIMIT
private static final long DIRECT_MEMORY_LIMIT -
RANDOM_PROVIDER
-
CLEANER
-
UNINITIALIZED_ARRAY_ALLOCATION_THRESHOLD
private static final int UNINITIALIZED_ARRAY_ALLOCATION_THRESHOLD -
OS_RELEASE_FILES
-
LINUX_ID_PREFIX
- See Also:
-
LINUX_ID_LIKE_PREFIX
- See Also:
-
BIG_ENDIAN_NATIVE_ORDER
public static final boolean BIG_ENDIAN_NATIVE_ORDER -
NOOP
-
-
Constructor Details
-
PlatformDependent
private PlatformDependent()
-
-
Method Details
-
addFilesystemOsClassifiers
-
addPropertyOsClassifiers
-
byteArrayBaseOffset
public static long byteArrayBaseOffset() -
hasDirectBufferNoCleanerConstructor
public static boolean hasDirectBufferNoCleanerConstructor() -
allocateUninitializedArray
public static byte[] allocateUninitializedArray(int size) -
isAndroid
public static boolean isAndroid()Returnstrue
if and only if the current platform is Android -
isWindows
public static boolean isWindows()Returntrue
if the JVM is running on Windows -
isOsx
public static boolean isOsx()Returntrue
if the JVM is running on OSX / MacOS -
maybeSuperUser
public static boolean maybeSuperUser()Returntrue
if the current user may be a super-user. Be aware that this is just an hint and so it may return false-positives. -
javaVersion
public static int javaVersion()Return the version of Java under which this library is used. -
canEnableTcpNoDelayByDefault
public static boolean canEnableTcpNoDelayByDefault()Returnstrue
if and only if it is fine to enable TCP_NODELAY socket option by default. -
hasUnsafe
public static boolean hasUnsafe()Returntrue
ifsun.misc.Unsafe
was found on the classpath and can be used for accelerated direct memory access. -
isUnaligned
public static boolean isUnaligned()true
if and only if the platform supports unaligned access.- See Also:
-
directBufferPreferred
public static boolean directBufferPreferred()Returnstrue
if the platform has reliable low-level direct buffer access API and a user has not specified-Dio.netty.noPreferDirect
option. -
maxDirectMemory
public static long maxDirectMemory()Returns the maximum memory reserved for direct buffer allocation. -
usedDirectMemory
public static long usedDirectMemory()Returns the current memory reserved for direct buffer allocation. This method returns -1 in case that a value is not available.- See Also:
-
tmpdir
Returns the temporary directory. -
bitMode
public static int bitMode()Returns the bit mode of the current VM (usually 32 or 64.) -
addressSize
public static int addressSize()Return the address size of the OS. 4 (for 32 bits systems ) and 8 (for 64 bits systems). -
allocateMemory
public static long allocateMemory(long size) -
freeMemory
public static void freeMemory(long address) -
reallocateMemory
public static long reallocateMemory(long address, long newSize) -
throwException
Raises an exception bypassing compiler checks for checked exceptions. -
throwException0
- Throws:
E
-
newConcurrentHashMap
Creates a new fastestConcurrentMap
implementation for the current platform. -
newLongCounter
Creates a new fastestLongCounter
implementation for the current platform. -
newConcurrentHashMap
Creates a new fastestConcurrentMap
implementation for the current platform. -
newConcurrentHashMap
Creates a new fastestConcurrentMap
implementation for the current platform. -
newConcurrentHashMap
public static <K,V> ConcurrentMap<K,V> newConcurrentHashMap(int initialCapacity, float loadFactor, int concurrencyLevel) Creates a new fastestConcurrentMap
implementation for the current platform. -
newConcurrentHashMap
Creates a new fastestConcurrentMap
implementation for the current platform. -
freeDirectBuffer
Try to deallocate the specified directByteBuffer
. Please note this method does nothing if the current platform does not support this operation or the specified buffer is not a direct buffer. -
directBufferAddress
-
directBuffer
-
getObject
-
getInt
-
safeConstructPutInt
-
getIntVolatile
public static int getIntVolatile(long address) -
putIntOrdered
public static void putIntOrdered(long adddress, int newValue) -
getByte
public static byte getByte(long address) -
getShort
public static short getShort(long address) -
getInt
public static int getInt(long address) -
getLong
public static long getLong(long address) -
getByte
public static byte getByte(byte[] data, int index) -
getByte
public static byte getByte(byte[] data, long index) -
getShort
public static short getShort(byte[] data, int index) -
getInt
public static int getInt(byte[] data, int index) -
getInt
public static int getInt(int[] data, long index) -
getLong
public static long getLong(byte[] data, int index) -
getLong
public static long getLong(long[] data, long index) -
toIntExact
private static int toIntExact(long value) -
toIntExact8
private static int toIntExact8(long value) -
getLongSafe
private static long getLongSafe(byte[] bytes, int offset) -
getIntSafe
private static int getIntSafe(byte[] bytes, int offset) -
getShortSafe
private static short getShortSafe(byte[] bytes, int offset) -
hashCodeAsciiCompute
Identical toPlatformDependent0.hashCodeAsciiCompute(long, int)
but forCharSequence
. -
hashCodeAsciiSanitizeInt
Identical toPlatformDependent0.hashCodeAsciiSanitize(int)
but forCharSequence
. -
hashCodeAsciiSanitizeShort
Identical toPlatformDependent0.hashCodeAsciiSanitize(short)
but forCharSequence
. -
hashCodeAsciiSanitizeByte
private static int hashCodeAsciiSanitizeByte(char value) Identical toPlatformDependent0.hashCodeAsciiSanitize(byte)
but forCharSequence
. -
putByte
public static void putByte(long address, byte value) -
putShort
public static void putShort(long address, short value) -
putInt
public static void putInt(long address, int value) -
putLong
public static void putLong(long address, long value) -
putByte
public static void putByte(byte[] data, int index, byte value) -
putByte
-
putShort
public static void putShort(byte[] data, int index, short value) -
putInt
public static void putInt(byte[] data, int index, int value) -
putLong
public static void putLong(byte[] data, int index, long value) -
putObject
-
objectFieldOffset
-
copyMemory
public static void copyMemory(long srcAddr, long dstAddr, long length) -
copyMemory
public static void copyMemory(byte[] src, int srcIndex, long dstAddr, long length) -
copyMemory
public static void copyMemory(byte[] src, int srcIndex, byte[] dst, int dstIndex, long length) -
copyMemory
public static void copyMemory(long srcAddr, byte[] dst, int dstIndex, long length) -
setMemory
public static void setMemory(byte[] dst, int dstIndex, long bytes, byte value) -
setMemory
public static void setMemory(long address, long bytes, byte value) -
allocateDirectNoCleaner
Allocate a newByteBuffer
with the givencapacity
.ByteBuffer
s allocated with this method MUST be deallocated viafreeDirectNoCleaner(ByteBuffer)
. -
reallocateDirectNoCleaner
Reallocate a newByteBuffer
with the givencapacity
.ByteBuffer
s reallocated with this method MUST be deallocated viafreeDirectNoCleaner(ByteBuffer)
. -
freeDirectNoCleaner
This method MUST only be called forByteBuffer
s that were allocated viaallocateDirectNoCleaner(int)
. -
hasAlignDirectByteBuffer
public static boolean hasAlignDirectByteBuffer() -
alignDirectBuffer
-
align
public static long align(long value, int alignment) -
incrementMemoryCounter
private static void incrementMemoryCounter(int capacity) -
decrementMemoryCounter
private static void decrementMemoryCounter(int capacity) -
useDirectBufferNoCleaner
public static boolean useDirectBufferNoCleaner() -
equals
public static boolean equals(byte[] bytes1, int startPos1, byte[] bytes2, int startPos2, int length) Compare twobyte
arrays for equality. For performance reasons no bounds checking on the parameters is performed.- Parameters:
bytes1
- the first byte array.startPos1
- the position (inclusive) to start comparing inbytes1
.bytes2
- the second byte array.startPos2
- the position (inclusive) to start comparing inbytes2
.length
- the amount of bytes to compare. This is assumed to be validated as not going out of bounds by the caller.
-
isZero
public static boolean isZero(byte[] bytes, int startPos, int length) Determine if a subsection of an array is zero.- Parameters:
bytes
- The byte array.startPos
- The starting index (inclusive) inbytes
.length
- The amount of bytes to check for zero.- Returns:
false
ifbytes[startPos:startsPos+length)
contains a value other than zero.
-
equalsConstantTime
public static int equalsConstantTime(byte[] bytes1, int startPos1, byte[] bytes2, int startPos2, int length) Compare twobyte
arrays for equality without leaking timing information. For performance reasons no bounds checking on the parameters is performed.The
int
return type is intentional and is designed to allow cascading of constant time operations:byte[] s1 = new {1, 2, 3}; byte[] s2 = new {1, 2, 3}; byte[] s3 = new {1, 2, 3}; byte[] s4 = new {4, 5, 6}; boolean equals = (equalsConstantTime(s1, 0, s2, 0, s1.length) invalid input: '&' equalsConstantTime(s3, 0, s4, 0, s3.length)) != 0;
- Parameters:
bytes1
- the first byte array.startPos1
- the position (inclusive) to start comparing inbytes1
.bytes2
- the second byte array.startPos2
- the position (inclusive) to start comparing inbytes2
.length
- the amount of bytes to compare. This is assumed to be validated as not going out of bounds by the caller.- Returns:
0
if not equal.1
if equal.
-
hashCodeAscii
public static int hashCodeAscii(byte[] bytes, int startPos, int length) Calculate a hash code of a byte array assuming ASCII character encoding. The resulting hash code will be case insensitive.- Parameters:
bytes
- The array which contains the data to hash.startPos
- What index to start generating a hash code inbytes
length
- The amount of bytes that should be accounted for in the computation.- Returns:
- The hash code of
bytes
assuming ASCII character encoding. The resulting hash code will be case insensitive.
-
hashCodeAscii
Calculate a hash code of a byte array assuming ASCII character encoding. The resulting hash code will be case insensitive.This method assumes that
bytes
is equivalent to abyte[]
but just usingCharSequence
for storage. The upper most byte of eachchar
frombytes
is ignored.- Parameters:
bytes
- The array which contains the data to hash (assumed to be equivalent to abyte[]
).- Returns:
- The hash code of
bytes
assuming ASCII character encoding. The resulting hash code will be case insensitive.
-
newMpscQueue
Create a newQueue
which is safe to use for multiple producers (different threads) and a single consumer (one thread!).- Returns:
- A MPSC queue which may be unbounded.
-
newMpscQueue
Create a newQueue
which is safe to use for multiple producers (different threads) and a single consumer (one thread!). -
newMpscQueue
Create a newQueue
which is safe to use for multiple producers (different threads) and a single consumer (one thread!). The queue will grow and shrink its capacity in units of the given chunk size. -
newSpscQueue
Create a newQueue
which is safe to use for single producer (one thread!) and a single consumer (one thread!). -
newFixedMpscQueue
Create a newQueue
which is safe to use for multiple producers (different threads) and a single consumer (one thread!) with the given fixescapacity
. -
newFixedMpmcQueue
Create a newQueue
which is safe to use for multiple producers (different threads) and multiple consumers with the given fixescapacity
. -
getClassLoader
Return theClassLoader
for the givenClass
. -
getContextClassLoader
Return the contextClassLoader
for the currentThread
. -
getSystemClassLoader
Return the systemClassLoader
. -
newConcurrentDeque
Returns a new concurrentDeque
. -
threadLocalRandom
Return aRandom
which is not-threadsafe and so can only be used from the same thread. -
isWindows0
private static boolean isWindows0() -
isOsx0
private static boolean isOsx0() -
maybeSuperUser0
private static boolean maybeSuperUser0() -
isJ9Jvm
public static boolean isJ9Jvm() -
isJ9Jvm0
private static boolean isJ9Jvm0() -
isIkvmDotNet
public static boolean isIkvmDotNet() -
isIkvmDotNet0
private static boolean isIkvmDotNet0() -
getMaxDirectMemorySizeArgPattern
-
estimateMaxDirectMemory
public static long estimateMaxDirectMemory()Compute an estimate of the maximum amount of direct memory available to this JVM.The computation is not cached, so you probably want to use
maxDirectMemory()
instead.This will produce debug log output when called.
- Returns:
- The estimated max direct memory, in bytes.
-
tmpdir0
-
toDirectory
-
bitMode0
private static int bitMode0() -
addressSize0
private static int addressSize0() -
byteArrayBaseOffset0
private static long byteArrayBaseOffset0() -
equalsSafe
private static boolean equalsSafe(byte[] bytes1, int startPos1, byte[] bytes2, int startPos2, int length) -
isZeroSafe
private static boolean isZeroSafe(byte[] bytes, int startPos, int length) -
hashCodeAsciiSafe
static int hashCodeAsciiSafe(byte[] bytes, int startPos, int length) Package private for testing purposes only! -
normalizedArch
-
normalizedOs
-
normalizedLinuxClassifiers
-
createTempFile
- Throws:
IOException
-
addClassifier
private static void addClassifier(Set<String> allowed, Set<String> dest, String... maybeClassifiers) Adds only those classifier strings to dest which are present in allowed.- Parameters:
allowed
- allowed classifiersdest
- destination setmaybeClassifiers
- potential classifiers to add
-
normalizeOsReleaseVariableValue
-
normalize
-
normalizeArch
-
normalizeOs
-