Skip to content
Snippets Groups Projects
Commit 5cb3e00e authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[Worker] Fix Excessive padding in 'class Worker'

emper/emper/Worker.hpp:10:7: error: Excessive padding in 'class Worker' (123 padding bytes, where 59 is optimal).
Optimal fields order:
seed,
workerId,
consider reordering the fields or adding explicit padding members [clang-analyzer-optin.performance.Padding,-warnings-as-errors]
parent 4a5a37dd
No related branches found
No related tags found
No related merge requests found
......@@ -11,11 +11,11 @@ class Worker {
private:
static thread_local Worker* currentWorker;
const workerid_t workerId;
ALIGN_TO_CACHE_LINE unsigned int seed;
Worker(workerid_t workerId, unsigned int seed) : workerId(workerId), seed(seed) {}
const workerid_t workerId;
Worker(workerid_t workerId, unsigned int seed) : seed(seed), workerId(workerId) {}
void setWorker();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment