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

Change-Id: I1be3eb6e9fdcf12e995c8fe8ee30592c94f7f97a


[ROCm/clr commit: e4ba0b6262]
Dieser Commit ist enthalten in:
Sourabh Betigeri
2025-01-13 15:21:28 -08:00
committet von Sourabh Betigeri
Ursprung 20b9b5a08c
Commit ac32b2e77e
+1 -4
Datei anzeigen
@@ -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");
/*! @}
* @}
*/