changeset 5161:4baf20879672

8006546: JSR 292: typos in the ConstantPool::copy_cp_impl() Summary: Simple typos that need to be fixed Reviewed-by: coleenp, twisti Contributed-by: serguei.spitsyn@oracle.com
author sspitsyn
date Tue, 21 Jan 2014 20:45:28 -0800
parents 191481960846
children 8816e9af562c
files src/share/vm/oops/constantPoolOop.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/oops/constantPoolOop.cpp	Tue Jan 21 20:44:52 2014 -0800
+++ b/src/share/vm/oops/constantPoolOop.cpp	Tue Jan 21 20:45:28 2014 -0800
@@ -1101,7 +1101,7 @@
                                    (len = old_off) * sizeof(u2));
       fillp += len;
       // first part of src
-      Copy::conjoint_memory_atomic(to_cp->operands()->short_at_addr(0),
+      Copy::conjoint_memory_atomic(from_cp->operands()->short_at_addr(0),
                                    new_operands->short_at_addr(fillp),
                                    (len = from_off) * sizeof(u2));
       fillp += len;
@@ -1111,7 +1111,7 @@
                                    (len = old_len - old_off) * sizeof(u2));
       fillp += len;
       // second part of src
-      Copy::conjoint_memory_atomic(to_cp->operands()->short_at_addr(from_off),
+      Copy::conjoint_memory_atomic(from_cp->operands()->short_at_addr(from_off),
                                    new_operands->short_at_addr(fillp),
                                    (len = from_len - from_off) * sizeof(u2));
       fillp += len;