SWDEV-507104 - Removes alignment requirement for Semaphore class to resolve runtime misaligned memory issues
Change-Id: I1be3eb6e9fdcf12e995c8fe8ee30592c94f7f97a
This commit is contained in:
gecommit door
Sourabh Betigeri
bovenliggende
dd4378611a
commit
e4ba0b6262
@@ -42,7 +42,7 @@ namespace amd {
|
||||
class Thread;
|
||||
|
||||
//! \brief Counting semaphore
|
||||
class alignas(64) Semaphore : public HeapObject {
|
||||
class Semaphore : public HeapObject {
|
||||
private:
|
||||
std::atomic_int state_; //!< This semaphore's value.
|
||||
|
||||
@@ -67,9 +67,6 @@ public:
|
||||
void reset() { state_.store(0, std::memory_order_release); }
|
||||
};
|
||||
|
||||
static_assert(sizeof(Semaphore) == 64 ,
|
||||
"unexpected total size of Semaphore");
|
||||
|
||||
/*! @}
|
||||
* @}
|
||||
*/
|
||||
|
||||
Verwijs in nieuw issue
Block a user