ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:120733] [Ruby master Bug#21046] Backport: TLS fix for ARM64
@ 2025-01-18  1:14 nobu (Nobuyoshi Nakada) via ruby-core
  2025-01-18 12:25 ` [ruby-core:120735] " Eregon (Benoit Daloze) via ruby-core
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2025-01-18  1:14 UTC (permalink / raw)
  To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)

Issue #21046 has been reported by nobu (Nobuyoshi Nakada).

----------------------------------------
Bug #21046: Backport: TLS fix for ARM64
https://bugs.ruby-lang.org/issues/21046

* Author: nobu (Nobuyoshi Nakada)
* Status: Closed
* Backport: 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED, 3.4: REQUIRED
----------------------------------------
commit:f7059af50a31a4d27a04ace0beadb60616f3f971

Use no-inline version `rb_current_ec` on Arm64

The TLS across .so issue seems related to Arm64, but not Darwin.




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:120735] [Ruby master Bug#21046] Backport: TLS fix for ARM64
  2025-01-18  1:14 [ruby-core:120733] [Ruby master Bug#21046] Backport: TLS fix for ARM64 nobu (Nobuyoshi Nakada) via ruby-core
@ 2025-01-18 12:25 ` Eregon (Benoit Daloze) via ruby-core
  2025-01-19  8:09 ` [ruby-core:120737] " kjtsanaktsidis (KJ Tsanaktsidis) via ruby-core
  2025-01-25  6:21 ` [ruby-core:120790] " nagachika (Tomoyuki Chikanaga) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: Eregon (Benoit Daloze) via ruby-core @ 2025-01-18 12:25 UTC (permalink / raw)
  To: ruby-core; +Cc: Eregon (Benoit Daloze)

Issue #21046 has been updated by Eregon (Benoit Daloze).


Does this mean all current releases of CRuby might hit this issue on linux-aarch64?
Do you know if it happens every time rb_current_ec() is called or only in some cases?

----------------------------------------
Bug #21046: Backport: TLS fix for ARM64
https://bugs.ruby-lang.org/issues/21046#change-111567

* Author: nobu (Nobuyoshi Nakada)
* Status: Closed
* Backport: 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED, 3.4: REQUIRED
----------------------------------------
commit:f7059af50a31a4d27a04ace0beadb60616f3f971

Use no-inline version `rb_current_ec` on Arm64

The TLS across .so issue seems related to Arm64, but not Darwin.




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:120737] [Ruby master Bug#21046] Backport: TLS fix for ARM64
  2025-01-18  1:14 [ruby-core:120733] [Ruby master Bug#21046] Backport: TLS fix for ARM64 nobu (Nobuyoshi Nakada) via ruby-core
  2025-01-18 12:25 ` [ruby-core:120735] " Eregon (Benoit Daloze) via ruby-core
@ 2025-01-19  8:09 ` kjtsanaktsidis (KJ Tsanaktsidis) via ruby-core
  2025-01-25  6:21 ` [ruby-core:120790] " nagachika (Tomoyuki Chikanaga) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: kjtsanaktsidis (KJ Tsanaktsidis) via ruby-core @ 2025-01-19  8:09 UTC (permalink / raw)
  To: ruby-core; +Cc: kjtsanaktsidis (KJ Tsanaktsidis)

Issue #21046 has been updated by kjtsanaktsidis (KJ Tsanaktsidis).


Heya - sorry I've been away from Ruby for a little while, but this caught my eye and I wanted to bring your attention to a similar bug I opened about rb_current_ec with M:N threading last year: https://bugs.ruby-lang.org/issues/20243

I don't know what reproduction you found for this particular problem that led to your fix, but I wonder: did it involve M:N threading? If so, I wonder if it's the same issue that I reported.

In that case we actually probably need to force un-inlining of rb_current_ec if M:N threading is enabled in general, I would have thought.

----------------------------------------
Bug #21046: Backport: TLS fix for ARM64
https://bugs.ruby-lang.org/issues/21046#change-111568

* Author: nobu (Nobuyoshi Nakada)
* Status: Closed
* Backport: 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED, 3.4: REQUIRED
----------------------------------------
commit:f7059af50a31a4d27a04ace0beadb60616f3f971

Use no-inline version `rb_current_ec` on Arm64

The TLS across .so issue seems related to Arm64, but not Darwin.




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:120790] [Ruby master Bug#21046] Backport: TLS fix for ARM64
  2025-01-18  1:14 [ruby-core:120733] [Ruby master Bug#21046] Backport: TLS fix for ARM64 nobu (Nobuyoshi Nakada) via ruby-core
  2025-01-18 12:25 ` [ruby-core:120735] " Eregon (Benoit Daloze) via ruby-core
  2025-01-19  8:09 ` [ruby-core:120737] " kjtsanaktsidis (KJ Tsanaktsidis) via ruby-core
@ 2025-01-25  6:21 ` nagachika (Tomoyuki Chikanaga) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: nagachika (Tomoyuki Chikanaga) via ruby-core @ 2025-01-25  6:21 UTC (permalink / raw)
  To: ruby-core; +Cc: nagachika (Tomoyuki Chikanaga)

Issue #21046 has been updated by nagachika (Tomoyuki Chikanaga).


Backporting commit git:f7059af50a31a4d27a04ace0beadb60616f3f971 into `ruby_3_2` depends on the changeset for the M:N Threads scheduler for Ractor (git:be1bbd5b7d40ad863ab35097765d3754726bbd54).
I would appreciate it if you could create a backport PR for ruby_3_2.

----------------------------------------
Bug #21046: Backport: TLS fix for ARM64
https://bugs.ruby-lang.org/issues/21046#change-111658

* Author: nobu (Nobuyoshi Nakada)
* Status: Closed
* Backport: 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED, 3.4: REQUIRED
----------------------------------------
commit:f7059af50a31a4d27a04ace0beadb60616f3f971

Use no-inline version `rb_current_ec` on Arm64

The TLS across .so issue seems related to Arm64, but not Darwin.




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-01-25  6:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-18  1:14 [ruby-core:120733] [Ruby master Bug#21046] Backport: TLS fix for ARM64 nobu (Nobuyoshi Nakada) via ruby-core
2025-01-18 12:25 ` [ruby-core:120735] " Eregon (Benoit Daloze) via ruby-core
2025-01-19  8:09 ` [ruby-core:120737] " kjtsanaktsidis (KJ Tsanaktsidis) via ruby-core
2025-01-25  6:21 ` [ruby-core:120790] " nagachika (Tomoyuki Chikanaga) via ruby-core

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).