Skip to content

Commit 73aadd8

Browse files
committed
Log a JVMTI error during attempt to deallocate linenumber table
1 parent b1be79b commit 73aadd8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ddprof-lib/src/main/cpp/flightRecorder.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ SharedLineNumberTable::~SharedLineNumberTable() {
5555
// JVMTI_ERROR_ILLEGAL_ARGUMENT means the memory wasn't allocated by JVMTI
5656
// which would be a serious bug in GetLineNumberTable
5757
if (err != JVMTI_ERROR_NONE) {
58-
// Can't use Log here as we might be in destructor context
59-
// The leak will be reported by NMT if this happens
58+
TEST_LOG("Unexpected error while deallocating linenumber table: %d", err);
6059
}
6160
}
6261
}

0 commit comments

Comments
 (0)