< prev index next >

src/share/vm/oops/objArrayOop.inline.hpp

Print this page
rev 9803 : 8146401: Clean up oop.hpp: add inline directives and fix header files

*** 1,7 **** /* ! * Copyright (c) 2015, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 37,42 **** --- 37,50 ---- } else { return load_decode_heap_oop(obj_at_addr<oop>(index)); } } + 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
< prev index next >