File icedtea-2.3.3-refresh-6924259-string_offset.patch of Package java-1_7_0-openjdk.1234

Index: icedtea-2.3.3/patches/hotspot/zero/6924259-string_offset.patch
===================================================================
--- icedtea-2.3.3.orig/patches/hotspot/zero/6924259-string_offset.patch	2012-10-17 10:20:09.779948816 +0200
+++ icedtea-2.3.3/patches/hotspot/zero/6924259-string_offset.patch	2012-10-19 14:56:22.265958143 +0200
@@ -378,7 +378,7 @@
 diff --git a/src/share/vm/memory/dump.cpp b/src/share/vm/memory/dump.cpp
 --- openjdk/hotspot/src/share/vm/memory/dump.cpp
 +++ openjdk/hotspot/src/share/vm/memory/dump.cpp
-@@ -78,8 +78,8 @@
+@@ -78,8 +78,8 @@ public:
    void do_oop(oop* p) {
      if (p != NULL) {
        oop obj = *p;
@@ -386,7 +386,7 @@
 -
 +      if (obj->klass() == SystemDictionary::String_klass() &&
 +          java_lang_String::has_hash_field()) {
-         int hash = java_lang_String::hash_string(obj);
+         int hash = java_lang_String::to_hash(obj);
          obj->int_field_put(hash_offset, hash);
        }
 diff --git a/src/share/vm/opto/graphKit.cpp b/src/share/vm/opto/graphKit.cpp
openSUSE Build Service is sponsored by