hotspot/src/os/linux/vm/os_linux.cpp
changeset 46629 8eeacdc76bf2
parent 46625 edefffab74e2
child 46811 f4ded11e0f74
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Wed Jul 05 17:19:37 2017 +0200
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Wed Jul 05 11:03:19 2017 -0700
@@ -1639,8 +1639,7 @@
   //
   // See Linux man page execstack(8) for more info.
   if (os::uses_stack_guard_pages() && !os::Linux::_stack_is_executable) {
-    ElfFile ef(filename);
-    if (!ef.specifies_noexecstack()) {
+    if (!ElfFile::specifies_noexecstack(filename)) {
       if (!is_init_completed()) {
         os::Linux::_stack_is_executable = true;
         // This is OK - No Java threads have been created yet, and hence no