aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/zero-fpu-control-is-noop.diff
blob: 706a7e0d2e0664ce802e356a695c75e8c433fa5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: ZeroVM fix under IA32. Actual code in
 openjdk/hotspot/src/os/linux/vm/os_linux.cpp#safe_cond_timedwait 
 call get_fpu_control_word and set_fpu_control_word under
 any IA32 arch.
 In os_linux_zero.cpp, this methods throw errors with ShouldNotCallThis.
 Just replace it with just NO-OP.
 TODO: Maybe just add ifndef ZERO in os_linux.cpp
Author: Damien Raude-Morvan <drazzib@debian.org>
Last-Update: 2011-08-02
Forwarded: http://mail.openjdk.java.net/pipermail/zero-dev/2011-August/000398.html
--- openjdk/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp.orig
+++ openjdk/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
@@ -265,11 +265,12 @@
 }
 
 int os::Linux::get_fpu_control_word() {
-  ShouldNotCallThis();
+  // Nothing to do
+  return 0;
 }
 
 void os::Linux::set_fpu_control_word(int fpu) {
-  ShouldNotCallThis();
+  // Nothing to do
 }
 
 bool os::is_allocatable(size_t bytes) {