some of the jdk/test/java/lang/invoke tests still use -XX:+EnableInvokeDynamic

Stephen Bannasch stephen.bannasch at
Fri Apr 15 06:12:08 PDT 2011

After I successfully bsd-port build (and after I see if java can start and display it's version number) I first run the 
jdk/test/java/lang/String tests with jtreg as a second-level smoketest:

   $ jtreg -jdk:build/bsd-amd64/j2sdk-image  -v:summary jdk/test/java/lang/String

These all pass.

But there appear to be errors running the jdk/test/java/lang/invoke/ tests.

Some of them add -XX:+EnableInvokeDynamic when run but this is no longer a valid option.

$ jtreg -XX:+UnlockExperimentalVMOptions -jdk:build/bsd-amd64/j2sdk-image  -v:summary jdk/test/java/lang/invoke/
Directory "JTwork" not found: creating
Directory "JTwork/scratch" not found: creating
FAILED: java/lang/invoke/6987555/
FAILED: java/lang/invoke/6991596/
Passed: java/lang/invoke/
FAILED: java/lang/invoke/
Passed: java/lang/invoke/
Passed: java/lang/invoke/
Passed: java/lang/invoke/
Passed: java/lang/invoke/
Test results: passed: 5; failed: 3
Report written to JTreport/html/report.html
Results written to /Users/stephen/dev/java/src/bsd/JTwork

Here's a bit of the detail for:

command: main -XX:+UnlockExperimentalVMOptions -XX:+EnableInvokeDynamic indify.Indify --verify-specifier-count=3 
--transitionalJSR292=false --expand-properties --classpath ${test.classes} --java 
reason: User specified action: run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableInvokeDynamic indify.Indify 
--verify-specifier-count=3 --transitionalJSR292=false --expand-properties --classpath ${test.classes} --java --check-output
elapsed time (seconds): 0.01
Unrecognized VM option '+EnableInvokeDynamic'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

More information about the bsd-port-dev mailing list