< prev index next >

test/hotspot/gtest/classfile/test_symbolTable.cpp

Print this page
*** 57,11 ***
  
    s1 = ss; // s1 is abc
    ASSERT_EQ(s1->refcount(), abccount + 1) << "should be two abc (s1 and ss)";
    ASSERT_EQ(hij->refcount(), hijcount) << "should only have one hij now (s2)";
  
!   s1 = s1; // self assignment
    ASSERT_EQ(s1->refcount(), abccount + 1) << "should still be two abc (s1 and ss)";
  
    TempNewSymbol s3;
    Symbol* klm = SymbolTable::new_symbol("klm");
    int klmcount = klm->refcount();
--- 57,11 ---
  
    s1 = ss; // s1 is abc
    ASSERT_EQ(s1->refcount(), abccount + 1) << "should be two abc (s1 and ss)";
    ASSERT_EQ(hij->refcount(), hijcount) << "should only have one hij now (s2)";
  
!   s1 = *&s1; // self assignment
    ASSERT_EQ(s1->refcount(), abccount + 1) << "should still be two abc (s1 and ss)";
  
    TempNewSymbol s3;
    Symbol* klm = SymbolTable::new_symbol("klm");
    int klmcount = klm->refcount();
< prev index next >