Skip to content

Commit 6871b73

Browse files
committed
Revert "Try adding alignas(8) to force correct alignment and work around GCC bug"
This reverts commit 4a5495022d4f64726ddaa66590859dfc72bc22f7.
1 parent 36f85f3 commit 6871b73

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/julia.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2288,15 +2288,14 @@ typedef struct _jl_task_t {
22882288
uint16_t priority;
22892289
// flag indicating whether or not to record timing metrics for this task
22902290
uint8_t metrics_enabled;
2291-
// (alignas(8) is needed in the following fields to work around a GCC bug. See #56626.)
22922291
// timestamp this task first entered the run queue
2293-
alignas(8) _Atomic(uint64_t) first_enqueued_at;
2292+
_Atomic(uint64_t) first_enqueued_at;
22942293
// timestamp this task was most recently scheduled to run
2295-
alignas(8) _Atomic(uint64_t) last_started_running_at;
2294+
_Atomic(uint64_t) last_started_running_at;
22962295
// time this task has spent running; updated when it yields or finishes.
2297-
alignas(8) _Atomic(uint64_t) cpu_time_ns;
2296+
_Atomic(uint64_t) cpu_time_ns;
22982297
// timestamp this task finished (i.e. entered state DONE or FAILED).
2299-
alignas(8) _Atomic(uint64_t) finished_at;
2298+
_Atomic(uint64_t) finished_at;
23002299

23012300
// hidden state:
23022301
// cached floating point environment

0 commit comments

Comments
 (0)