--- a/hotspot/src/share/vm/oops/objArrayOop.inline.hpp Tue Jan 12 21:17:13 2016 +0400
+++ b/hotspot/src/share/vm/oops/objArrayOop.inline.hpp Mon Jan 04 15:41:05 2016 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -39,4 +39,12 @@
}
}
+inline void objArrayOopDesc::obj_at_put(int index, oop value) {
+ if (UseCompressedOops) {
+ oop_store(obj_at_addr<narrowOop>(index), value);
+ } else {
+ oop_store(obj_at_addr<oop>(index), value);
+ }
+}
+
#endif // SHARE_VM_OOPS_OBJARRAYOOP_INLINE_HPP