SWDEV-507104 - Removes alignment requirement for Semaphore class to resolve runtime misaligned memory issues

Change-Id: I1be3eb6e9fdcf12e995c8fe8ee30592c94f7f97a
이 커밋은 다음에 포함됨:
Sourabh Betigeri 작성하고 Sourabh Betigeri가 2025-01-20 11:27:47 -05:00를 커밋함
1 부모 dd4378611a
커밋 e4ba0b6262
1 파일이 변경됨
+1 -4
+1 -4
파일 보기
@@ -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");
/*! @}
* @}
*/