Align the entries in the event buffer to 4 bytes at least. Usually CPUs like
that. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30272 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -701,6 +701,7 @@ void*
|
|||||||
SystemProfiler::_AllocateBuffer(size_t size, int event, int cpu, int count,
|
SystemProfiler::_AllocateBuffer(size_t size, int event, int cpu, int count,
|
||||||
bool threadsLocked)
|
bool threadsLocked)
|
||||||
{
|
{
|
||||||
|
size = (size + 3) / 4 * 4;
|
||||||
size += sizeof(system_profiler_event_header);
|
size += sizeof(system_profiler_event_header);
|
||||||
|
|
||||||
size_t end = fBufferStart + fBufferSize;
|
size_t end = fBufferStart + fBufferSize;
|
||||||
|
|||||||
Reference in New Issue
Block a user