8292312: Work around memset() called operator new

Reviewed-by: dcubed
This commit is contained in:
Ioi Lam 2022-08-19 03:05:13 +00:00
parent 964aac28fe
commit 2edd550105
3 changed files with 5 additions and 4 deletions

View file

@ -78,7 +78,7 @@ void ObjectMonitorsHashtable::add_entry(void* key, ObjectMonitor* om) {
ObjectMonitorsHashtable::PtrList* list = get_entry(key);
if (list == nullptr) {
// Create new list and add it to the hash table:
list = new (ResourceObj::C_HEAP, mtThread) ObjectMonitorsHashtable::PtrList();
list = new (ResourceObj::C_HEAP, mtThread) ObjectMonitorsHashtable::PtrList;
add_entry(key, list);
}
list->add(om); // Add the ObjectMonitor to the list.