mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8292312: Work around memset() called operator new
Reviewed-by: dcubed
This commit is contained in:
parent
964aac28fe
commit
2edd550105
3 changed files with 5 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue