mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8198311: Avoid uses of global malloc and free
Reviewed-by: kvn, kbarrett, dcubed, zgu
This commit is contained in:
parent
853ed9b9e3
commit
28f0646ef1
2 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -194,7 +194,7 @@ void AOTLib::verify_config() {
|
|||
}
|
||||
|
||||
AOTLib::~AOTLib() {
|
||||
free((void*) _name);
|
||||
os::free((void*) _name);
|
||||
}
|
||||
|
||||
AOTCodeHeap::~AOTCodeHeap() {
|
||||
|
@ -207,7 +207,7 @@ AOTCodeHeap::~AOTCodeHeap() {
|
|||
}
|
||||
|
||||
AOTLib::AOTLib(void* handle, const char* name, int dso_id) : _valid(true), _dl_handle(handle), _dso_id(dso_id) {
|
||||
_name = (const char*) strdup(name);
|
||||
_name = (const char*) os::strdup(name);
|
||||
|
||||
// Verify that VM runs with the same parameters as AOT tool.
|
||||
_config = (AOTConfiguration*) load_symbol("A.config");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue