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:
parent
8ea3e9126d
commit
368dd37798
@ -12,6 +12,8 @@
|
||||
|
||||
#include <tls.h>
|
||||
|
||||
#include <util/kernel_cpp.h>
|
||||
|
||||
|
||||
class TLSBlock {
|
||||
public:
|
||||
@ -284,8 +286,12 @@ DynamicThreadVector::_ResizeVector(unsigned minimumSize)
|
||||
|
||||
*fVector = (TLSBlock*)newVector;
|
||||
memset(*fVector + oldSize + 1, 0, (size - oldSize) * sizeof(TLSBlock));
|
||||
if (fGeneration == NULL)
|
||||
if (fGeneration == NULL) {
|
||||
fGeneration = new Generation;
|
||||
if (fGeneration == NULL)
|
||||
return B_NO_MEMORY;
|
||||
}
|
||||
|
||||
*(Generation**)*fVector = fGeneration;
|
||||
fGeneration->SetSize(size);
|
||||
|
||||
|
@ -23,6 +23,8 @@
|
||||
#include "elf_tls.h"
|
||||
#include "runtime_loader_private.h"
|
||||
|
||||
#include <util/kernel_cpp.h>
|
||||
|
||||
|
||||
// keep in sync with app ldscript
|
||||
#ifdef __x86_64__
|
||||
|
Loading…
x
Reference in New Issue
Block a user