hg: panama/dev: Summary: Fix UndefinedLayoutException exception message

Sundararajan Athijegannathan sundararajan.athijegannathan at oracle.com
Wed Jan 30 02:08:56 UTC 2019


Hmm.. That needs to be investigated. But it is better to avoid test 
failure. -othervm is fine (for now)

-Sundar

On 30/01/19, 5:35 AM, Jorn Vernee wrote:
> Ok. New test is failing intermittently because it's loading a native 
> library that's also being loaded by another test, and this is causing 
> a 'Native Library already loaded in another classloader' error. AFAIK 
> it's a matter of when the GC decides to collect the ClassLoader of the 
> previous test (and unload the library). The shared library use was 
> already the case for 2 other tests (Hello.java and 
> LoadLibraryTest.java), but adding a third test to this group 
> apparently causes problems :/ I didn't run into this before while 
> testing locally.
>
> Using /othervm for the test seems to fix the issue: 
> http://cr.openjdk.java.net/~jvernee/panama/webrevs/conclib/webrev.00/
>
> Sorry about that,
> Jorn
>
> jbvernee at xs4all.nl schreef op 2019-01-29 22:09:
>> Changeset: d82636575392
>> Author:    jvernee
>> Date:      2019-01-29 22:08 +0100
>> URL:       http://hg.openjdk.java.net/panama/dev/rev/d82636575392
>>
>> Summary: Fix UndefinedLayoutException exception message
>> Reviewed-by: mcimadamore
>>
>> ! src/java.base/share/classes/jdk/internal/foreign/LayoutResolver.java
>> + test/jdk/java/foreign/UndefinedLayoutTest.java


More information about the panama-dev mailing list