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

Jorn Vernee jbvernee at xs4all.nl
Wed Jan 30 00:05:03 UTC 2019


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