diff options
Diffstat (limited to 'recipes-core/icedtea/openjdk-7-03b147/icedtea-hotspot-fix-prefix_relocInfo-declaration.patch')
-rw-r--r-- | recipes-core/icedtea/openjdk-7-03b147/icedtea-hotspot-fix-prefix_relocInfo-declaration.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes-core/icedtea/openjdk-7-03b147/icedtea-hotspot-fix-prefix_relocInfo-declaration.patch b/recipes-core/icedtea/openjdk-7-03b147/icedtea-hotspot-fix-prefix_relocInfo-declaration.patch new file mode 100644 index 0000000..bd2819f --- /dev/null +++ b/recipes-core/icedtea/openjdk-7-03b147/icedtea-hotspot-fix-prefix_relocInfo-declaration.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | --- openjdk/hotspot/src/share/vm/code/relocInfo.hpp | ||
2 | +++ openjdk/hotspot/src/share/vm/code/relocInfo.hpp | ||
3 | @@ -371,7 +371,7 @@ | ||
4 | // "immediate" in the prefix header word itself. This optimization | ||
5 | // is invisible outside this module.) | ||
6 | |||
7 | - inline friend relocInfo prefix_relocInfo(int datalen = 0); | ||
8 | + inline friend relocInfo prefix_relocInfo(int datalen); | ||
9 | |||
10 | protected: | ||
11 | // an immediate relocInfo optimizes a prefix with one 10-bit unsigned value | ||
12 | @@ -466,7 +466,7 @@ | ||
13 | return relocInfo(relocInfo::none, relocInfo::offset_limit() - relocInfo::offset_unit); | ||
14 | } | ||
15 | |||
16 | -inline relocInfo prefix_relocInfo(int datalen) { | ||
17 | +inline relocInfo prefix_relocInfo(int datalen = 0) { | ||
18 | assert(relocInfo::fits_into_immediate(datalen), "datalen in limits"); | ||
19 | return relocInfo(relocInfo::data_prefix_tag, relocInfo::RAW_BITS, relocInfo::datalen_tag | datalen); | ||
20 | } | ||