runtime_loader: Fix missing include of util/kernel_cpp.h.
Due to the missing include, the builtin new and delete operators were used in those two files instead of the ones from the include used everywhere else in the runtime_loader.
This commit is contained in:
@@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#include <tls.h>
|
#include <tls.h>
|
||||||
|
|
||||||
|
#include <util/kernel_cpp.h>
|
||||||
|
|
||||||
|
|
||||||
class TLSBlock {
|
class TLSBlock {
|
||||||
public:
|
public:
|
||||||
@@ -284,8 +286,12 @@ DynamicThreadVector::_ResizeVector(unsigned minimumSize)
|
|||||||
|
|
||||||
*fVector = (TLSBlock*)newVector;
|
*fVector = (TLSBlock*)newVector;
|
||||||
memset(*fVector + oldSize + 1, 0, (size - oldSize) * sizeof(TLSBlock));
|
memset(*fVector + oldSize + 1, 0, (size - oldSize) * sizeof(TLSBlock));
|
||||||
if (fGeneration == NULL)
|
if (fGeneration == NULL) {
|
||||||
fGeneration = new Generation;
|
fGeneration = new Generation;
|
||||||
|
if (fGeneration == NULL)
|
||||||
|
return B_NO_MEMORY;
|
||||||
|
}
|
||||||
|
|
||||||
*(Generation**)*fVector = fGeneration;
|
*(Generation**)*fVector = fGeneration;
|
||||||
fGeneration->SetSize(size);
|
fGeneration->SetSize(size);
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
#include "elf_tls.h"
|
#include "elf_tls.h"
|
||||||
#include "runtime_loader_private.h"
|
#include "runtime_loader_private.h"
|
||||||
|
|
||||||
|
#include <util/kernel_cpp.h>
|
||||||
|
|
||||||
|
|
||||||
// keep in sync with app ldscript
|
// keep in sync with app ldscript
|
||||||
#ifdef __x86_64__
|
#ifdef __x86_64__
|
||||||
|
|||||||
Reference in New Issue
Block a user