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:
Michael Lotz 2014-10-18 19:55:44 +02:00
parent 8ea3e9126d
commit 368dd37798
2 changed files with 9 additions and 1 deletions

View File

@ -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);

View File

@ -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__