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:
parent
14d5277c14
commit
1cdc2fb608
@ -701,6 +701,7 @@ void*
|
||||
SystemProfiler::_AllocateBuffer(size_t size, int event, int cpu, int count,
|
||||
bool threadsLocked)
|
||||
{
|
||||
size = (size + 3) / 4 * 4;
|
||||
size += sizeof(system_profiler_event_header);
|
||||
|
||||
size_t end = fBufferStart + fBufferSize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user