RFR(S/L): 8028537: PPC64: Updated the JDK regression tests to run on AIX

Volker Simonis volker.simonis at gmail.com
Wed Jan 15 16:42:47 UTC 2014


Hi Alan,

thanks for the suggestion. That's fine for me. I've copied the empty SCTP
stubs from the macosx to the aix directory as well and updated the make
file accordingly (in the patch for "8031581: PPC64: Addons and fixes for
AIX to pass the jdk regression tests").

Therefore, the changes to the three tests:

test/com/sun/nio/sctp/SctpChannel/Util.java
test/com/sun/nio/sctp/SctpMultiChannel/Util.java
test/com/sun/nio/sctp/SctpServerChannel/Util.java

can be considered obsolete.

Regards,
Volker

On Tue, Jan 14, 2014 at 8:13 PM, Alan Bateman <Alan.Bateman at oracle.com>wrote:

> On 14/01/2014 16:57, Volker Simonis wrote:
>
>> :
>>
>> test/com/sun/nio/sctp/SctpChannel/Util.java
>> test/com/sun/nio/sctp/SctpMultiChannel/Util.java
>> test/com/sun/nio/sctp/SctpServerChannel/Util.java
>>
>>     - On AIX, we currently haven't implemented SCTP but we nevertheless
>>
>>     compile the shared SCTP classes into the runtime class library. This
>> way
>>     the AIX JDK can at least compile SCTP applications altough it can not
>> run
>>     them. To support this scenario, the runtime check for the
>> availability of
>>     SCTP has to be extended to catch UnsatisfiedLinkError and
>>     NoClassDefFoundError. UnsatisfiedLinkError will be thrown the first
>> time
>>     when the class SctpChannelImpl will be loaded because it cannot load
>> the
>>     its native support library in the static initialisation section. On
>> the
>>     next load attempt of the class, a NoClassDefFoundError will be thrown
>>     because of the previously failed initialisation.
>>
>>  OS X has the same issue and the solution used there are stub
> implementations that just throw UOE. Details in jdk/src/macosx/classes/sun/nio/ch/sctp
> and that maybe that would work for AIX too.
>
> -Alan.
>



More information about the core-libs-dev mailing list