diff src/share/vm/graal/graalCodeInstaller.cpp @ 15176:f24d578e63a9

changed com.oracle.graal.api.code.CompilationResult.getFrameSize() to include the return address size if return address is puhsed onto the stack
author twisti
date Wed, 16 Apr 2014 13:32:54 -1000
parents 5c71dcf0915d
children 7a9531f50cd8
line wrap: on
line diff
--- a/src/share/vm/graal/graalCodeInstaller.cpp	Wed Apr 16 22:54:48 2014 +0200
+++ b/src/share/vm/graal/graalCodeInstaller.cpp	Wed Apr 16 13:32:54 2014 -1000
@@ -455,8 +455,7 @@
 
   _code = (arrayOop) CompilationResult::targetCode(comp_result);
   _code_size = CompilationResult::targetCodeSize(comp_result);
-  // The frame size we get from the target method does not include the return address, so add one word for it here.
-  _total_frame_size = CompilationResult::frameSize(comp_result) + HeapWordSize;  // FIXME this is an x86-ism
+  _total_frame_size = CompilationResult::frameSize(comp_result);
   _custom_stack_area_offset = CompilationResult::customStackAreaOffset(comp_result);
 
   // Pre-calculate the constants section size.  This is required for PC-relative addressing.