]> git.pld-linux.org Git - packages/openjdk9.git/blame - current_stack_pointer.patch
Version: 8u66.b02
[packages/openjdk9.git] / current_stack_pointer.patch
CommitLineData
bd96d31d
JK
1diff -dur jdk8u-jdk8u66-b02.orig/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp jdk8u-jdk8u66-b02/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
2--- jdk8u-jdk8u66-b02.orig/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp 2015-07-22 19:12:56.000000000 +0200
3+++ jdk8u-jdk8u66-b02/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp 2015-09-21 20:19:55.821171221 +0200
4@@ -55,8 +55,8 @@
5 #include "utilities/vmError.hpp"
6
7 address os::current_stack_pointer() {
8- address dummy = (address) &dummy;
9- return dummy;
10+ // return the address of the current function
11+ return (address)__builtin_frame_address(0);
12 }
13
14 frame os::get_sender_for_C_frame(frame* fr) {
This page took 0.029403 seconds and 4 git commands to generate.