changeset 4620:d9b08d62b95e

8010783: assert(s->refcount() != 0) failed: for create_overpasses Reviewed-by: kvn, dcubed
author acorn
date Thu, 02 May 2013 10:58:04 -0400
parents 1847df492437
children b7f3bf2ba33b
files src/share/vm/classfile/bytecodeAssembler.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/bytecodeAssembler.cpp	Wed May 01 10:10:57 2013 -0400
+++ b/src/share/vm/classfile/bytecodeAssembler.cpp	Thu May 02 10:58:04 2013 -0400
@@ -75,8 +75,8 @@
     int idx = i + _orig->length();
     switch (entry._tag) {
       case BytecodeCPEntry::UTF8:
+        entry._u.utf8->increment_refcount();
         cp->symbol_at_put(idx, entry._u.utf8);
-        entry._u.utf8->increment_refcount();
         break;
       case BytecodeCPEntry::KLASS:
         cp->unresolved_klass_at_put(