Enum Class MemorySeal
- All Implemented Interfaces:
Serializable, Comparable<MemorySeal>, Constable
Specific "memory seal" operations.
- Author:
- Christian Kohlschütter
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPrevents writing to the memory area in question, except for shared writable mappings that were created prior to the seal being set.Prevents growing the memory area in question.Prevents any further modifications to the set of seals.Prevents shrinking the memory area in question.Prevents writing to the memory area in question. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySealReturns the enum constant of this class with the specified name.static MemorySeal[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PREVENT_SEAL
Prevents any further modifications to the set of seals. -
PREVENT_SHRINK
Prevents shrinking the memory area in question. -
PREVENT_GROW
Prevents growing the memory area in question. -
PREVENT_WRITE
Prevents writing to the memory area in question. -
PREVENT_FUTURE_WRITE
Prevents writing to the memory area in question, except for shared writable mappings that were created prior to the seal being set. This is available on Linux since version 5.1, and on NetBSD since version 11.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-