RFR 8081770 [TESTBUG] regression Test7107135 needs to remove dependence on locally installed gcc

Gerald Thornbrugh gerald.thornbrugh at oracle.com
Tue May 3 21:54:38 UTC 2016


Hi Everyone,

I would like to have the following change reviewed:

Bug: https://bugs.openjdk.java.net/browse/JDK-8081770
Webrev: http://cr.openjdk.java.net/~gthornbr/8081770/webrev.00/ 
<http://cr.openjdk.java.net/%7Egthornbr/8081770/webrev.00/>

JPRT testing completed without errors and I verified that the test was run.


The changes consist of:

Renaming the test directory from "7107135" to "execstack".

Replacing the existing Test7107135.sh script file with a java test 
source file Testexecstack.java.

Adding the new test directory to the "BUILD_HOTSPOT_JTREG_NATIVE_SRC" 
list for Linux builds
so the native libtest-rw.c and libtest-rwx.c source files would be 
compiled into native libraries.

Renaming the existing test.c native source file to libtest-rw.c and 
libtest-rwx.c so the build process
would identify the file as a native library source file and build the 
libraries.

Adding native source file specific LDFLAGS so the source files could be 
built with "-z noexecstack"
and "-z execstack".

To get the build process to create a "noexecstack" native library and an 
"execstack" native library
the existing test.c native library source was placed in two separate 
files (libtest-rw.c and libtest-rwx.c).
This was done so that different LDFLAGS could be specified per file.

Please let me know if you have any questions or concerns.

Thanks,

Jerry


More information about the hotspot-runtime-dev mailing list