c6b24d764c
TransactionPool was using placement new and delete improperly which could lead to Transaction::~Transaction running twice. Make Transaction constructor private to make sure TransactionPool has allocated all Transactions it contains. Remove "*Very useful for debugging purposes" leak on every allocation.
16 lines
514 B
C
16 lines
514 B
C
//------------------------------------------------------------------------------
|
|
// CLING - the C++ LLVM-based InterpreterG :)
|
|
//
|
|
// This file is dual-licensed: you can choose to license it under the University
|
|
// of Illinois Open Source License or the GNU Lesser General Public License. See
|
|
// LICENSE.TXT for details.
|
|
//------------------------------------------------------------------------------
|
|
|
|
// RUN: cat %s | %cling -I %S -Xclang -verify
|
|
// Test transactionPoolReuse
|
|
|
|
.undo
|
|
|
|
//expected-no-diagnostics
|
|
.q
|