< prev index next >

src/hotspot/share/classfile/classFileParser.cpp

Print this page
*** 2077,11 ***
    }
    if (has_annotation(_jdk_internal_ValueBased)) {
      ik->set_has_value_based_class_annotation();
      if (DiagnoseSyncOnValueBasedClasses) {
        ik->set_is_value_based();
!       ik->set_prototype_header(markWord::prototype());
      }
    }
  }
  
  #define MAX_ARGS_SIZE 255
--- 2077,15 ---
    }
    if (has_annotation(_jdk_internal_ValueBased)) {
      ik->set_has_value_based_class_annotation();
      if (DiagnoseSyncOnValueBasedClasses) {
        ik->set_is_value_based();
!       if (UseCompactObjectHeaders) {
+         ik->set_prototype_header(markWord::prototype() LP64_ONLY(.set_klass(ik)));
+       } else {
+         ik->set_prototype_header(markWord::prototype());
+       }
      }
    }
  }
  
  #define MAX_ARGS_SIZE 255
< prev index next >