All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.graalvm.compiler.code.DataSection_OptionDescriptors Maven / Gradle / Ivy

There is a newer version: 24.1.1
Show newest version
// CheckStyle: stop header check
// CheckStyle: stop line length check
// GENERATED CONTENT - DO NOT EDIT
// Source: DataSection.java
package org.graalvm.compiler.code;

import java.util.*;
import org.graalvm.compiler.options.*;
import org.graalvm.compiler.options.OptionType;
import org.graalvm.compiler.options.OptionStability;

public class DataSection_OptionDescriptors implements OptionDescriptors {
    @Override
    public OptionDescriptor get(String value) {
        switch (value) {
        // CheckStyle: stop line length check
        case "ForceAdversarialLayout": {
            return OptionDescriptor.create(
                /*name*/ "ForceAdversarialLayout",
                /*optionType*/ OptionType.Debug,
                /*optionValueType*/ Boolean.class,
                /*help*/ "Place N-byte constants in the data section such that they are misaligned with respect to N*2. For example, place 4 byte constants at offset 4, 12 or 20, etc. This layout is used to detect instructions that load constants with alignment smaller than the fetch size. For instance, an XORPS instruction that does a 16-byte fetch of a 4-byte float not aligned to 16 bytes will cause a segfault.",
                /*declaringClass*/ DataSection.Options.class,
                /*fieldName*/ "ForceAdversarialLayout",
                /*option*/ DataSection.Options.ForceAdversarialLayout,
                /*stability*/ OptionStability.EXPERIMENTAL,
                /*deprecated*/ false,
                /*deprecationMessage*/ "");
        }
        // CheckStyle: resume line length check
        }
        return null;
    }

    @Override
    public Iterator iterator() {
        return new Iterator<>() {
            int i = 0;
            @Override
            public boolean hasNext() {
                return i < 1;
            }
            @Override
            public OptionDescriptor next() {
                switch (i++) {
                    case 0: return get("ForceAdversarialLayout");
                }
                throw new NoSuchElementException();
            }
        };
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy