Skip to content

Commit

Permalink
Merge pull request ibmruntimes#122 from keithc-ca/layouts
Browse files Browse the repository at this point in the history
Revert PlatformLayouts to remove unused code
  • Loading branch information
JasonFengJ9 authored Jan 22, 2024
2 parents 8380aa9 + fbe4c79 commit db6ee28
Showing 1 changed file with 0 additions and 172 deletions.
172 changes: 0 additions & 172 deletions test/jdk/java/foreign/callarranger/platform/PlatformLayouts.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@
* questions.
*
*/

/*
* ===========================================================================
* (c) Copyright IBM Corp. 2022, 2023 All Rights Reserved
* ===========================================================================
*/

package platform;

import jdk.internal.foreign.abi.SharedUtils;
Expand Down Expand Up @@ -312,169 +305,4 @@ private RISCV64() {}
public static final AddressLayout C_POINTER = SharedUtils.C_POINTER;

}

/**
* This class defines layout constants modelling standard primitive types supported by the PPC64LE SystemV ABI.
*/
public static final class SysVPPC64le {

// Suppresses default constructor, ensuring non-instantiability.
private SysVPPC64le() {}

/**
* The {@code bool} native type.
*/
public static final ValueLayout.OfBoolean C_BOOL = ValueLayout.JAVA_BOOLEAN;

/**
* The {@code char} native type.
*/
public static final ValueLayout.OfByte C_CHAR = ValueLayout.JAVA_BYTE;

/**
* The {@code short} native type.
*/
public static final ValueLayout.OfShort C_SHORT = ValueLayout.JAVA_SHORT;

/**
* The {@code int} native type.
*/
public static final ValueLayout.OfInt C_INT = ValueLayout.JAVA_INT;

/**
* The {@code long} native type.
*/
public static final ValueLayout.OfLong C_LONG = ValueLayout.JAVA_LONG;

/**
* The {@code long long} native type.
*/
public static final ValueLayout.OfLong C_LONG_LONG = ValueLayout.JAVA_LONG;

/**
* The {@code float} native type.
*/
public static final ValueLayout.OfFloat C_FLOAT = ValueLayout.JAVA_FLOAT;

/**
* The {@code double} native type.
*/
public static final ValueLayout.OfDouble C_DOUBLE = ValueLayout.JAVA_DOUBLE;

/**
* The {@code T*} native type.
*/
public static final AddressLayout C_POINTER = SharedUtils.C_POINTER;

}

/**
* This class defines layout constants modelling standard primitive types supported by the s390x SystemV ABI.
*/
public static final class SysVS390x {

// Suppresses default constructor, ensuring non-instantiability.
private SysVS390x() {}

/**
* The {@code bool} native type.
*/
public static final ValueLayout.OfBoolean C_BOOL = ValueLayout.JAVA_BOOLEAN;

/**
* The {@code char} native type.
*/
public static final ValueLayout.OfByte C_CHAR = ValueLayout.JAVA_BYTE;

/**
* The {@code short} native type.
*/
public static final ValueLayout.OfShort C_SHORT = ValueLayout.JAVA_SHORT;

/**
* The {@code int} native type.
*/
public static final ValueLayout.OfInt C_INT = ValueLayout.JAVA_INT;

/**
* The {@code long} native type.
*/
public static final ValueLayout.OfLong C_LONG = ValueLayout.JAVA_LONG;

/**
* The {@code long long} native type.
*/
public static final ValueLayout.OfLong C_LONG_LONG = ValueLayout.JAVA_LONG;

/**
* The {@code float} native type.
*/
public static final ValueLayout.OfFloat C_FLOAT = ValueLayout.JAVA_FLOAT;

/**
* The {@code double} native type.
*/
public static final ValueLayout.OfDouble C_DOUBLE = ValueLayout.JAVA_DOUBLE;

/**
* The {@code T*} native type.
*/
public static final AddressLayout C_POINTER = SharedUtils.C_POINTER;

}

/**
* This class defines layout constants modelling standard primitive types supported by the AIX PPC64 ABI.
*/
public static final class AIX {

// Suppresses default constructor, ensuring non-instantiability.
private AIX() {}

/**
* The {@code bool} native type.
*/
public static final ValueLayout.OfBoolean C_BOOL = ValueLayout.JAVA_BOOLEAN;

/**
* The {@code char} native type.
*/
public static final ValueLayout.OfByte C_CHAR = ValueLayout.JAVA_BYTE;

/**
* The {@code short} native type.
*/
public static final ValueLayout.OfShort C_SHORT = ValueLayout.JAVA_SHORT;

/**
* The {@code int} native type.
*/
public static final ValueLayout.OfInt C_INT = ValueLayout.JAVA_INT;

/**
* The {@code long} native type.
*/
public static final ValueLayout.OfInt C_LONG = ValueLayout.JAVA_INT;

/**
* The {@code long long} native type.
*/
public static final ValueLayout.OfLong C_LONG_LONG = ValueLayout.JAVA_LONG;

/**
* The {@code float} native type.
*/
public static final ValueLayout.OfFloat C_FLOAT = ValueLayout.JAVA_FLOAT;

/**
* The {@code double} native type.
*/
public static final ValueLayout.OfDouble C_DOUBLE = ValueLayout.JAVA_DOUBLE;

/**
* The {@code T*} native type.
*/
public static final AddressLayout C_POINTER = SharedUtils.C_POINTER;

}
}

0 comments on commit db6ee28

Please sign in to comment.