--- old/src/hotspot/share/adlc/forms.cpp 2018-11-15 07:49:19.279799490 -0800 +++ new/src/hotspot/share/adlc/forms.cpp 2018-11-15 07:49:18.815756325 -0800 @@ -40,7 +40,7 @@ // Constructor and Destructor NameList::NameList() : _cur(0), _max(4), _iter(0), _justReset(true) { - _names = (const char**)malloc(_max*sizeof(char*)); + _names = (const char**) AllocateHeap(_max*sizeof(char*)); } NameList::~NameList() { // The following free is a double-free, and crashes the program: