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:
Ingo Weinhold
2009-04-19 23:36:59 +00:00
parent 14d5277c14
commit 1cdc2fb608
@@ -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;