8145940: TempNewSymbol should have correct copy and assignment functions

Add clear() to the assignment operator and add copy constructor.

Reviewed-by: mgronlun, lfoltan, kbarrett, jrose
This commit is contained in:
Coleen Phillimore 2016-01-14 15:45:31 -05:00
parent d767b421ea
commit f93feda308
3 changed files with 90 additions and 16 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012 Red Hat, Inc.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
@ -3889,6 +3889,7 @@ void Test_linked_list();
void TestResourcehash_test();
void TestChunkedList_test();
void Test_log_length();
void Test_TempNewSymbol();
#if INCLUDE_ALL_GCS
void TestOldFreeSpaceCalculation_test();
void TestG1BiasedArray_test();
@ -3932,6 +3933,7 @@ void execute_internal_vm_tests() {
run_unit_test(JSONTest::test());
run_unit_test(Test_log_length());
run_unit_test(DirectivesParser::test());
run_unit_test(Test_TempNewSymbol());
#if INCLUDE_VM_STRUCTS
run_unit_test(VMStructs::test());
#endif