public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/iains/heads/d-for-darwin)] D, Darwin : Do not allow moving fibres between pthreads.
@ 2020-12-21 20:37 Iain D Sandoe
  0 siblings, 0 replies; 3+ messages in thread
From: Iain D Sandoe @ 2020-12-21 20:37 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:73a03aaca5be37a6de554603dc7a046b6614fda2

commit 73a03aaca5be37a6de554603dc7a046b6614fda2
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Thu Dec 10 14:06:07 2020 +0000

    D, Darwin : Do not allow moving fibres between pthreads.
    
    Emulated TLS targets (and, indeed some native TLS ones too)
    on GCC should not allow fibres to be moved between threads
    since the ME keeps pointers to TLS vars cached as an internal
    detail and cannot see that a function call could return on a
    different thread.

Diff:
---
 libphobos/libdruntime/core/thread.d | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libphobos/libdruntime/core/thread.d b/libphobos/libdruntime/core/thread.d
index 5381cda103b..843125831aa 100644
--- a/libphobos/libdruntime/core/thread.d
+++ b/libphobos/libdruntime/core/thread.d
@@ -5311,6 +5311,11 @@ unittest
 // Multiple threads running shared fibers
 version (PPC)   version = UnsafeFiberMigration;
 version (PPC64) version = UnsafeFiberMigration;
+version (Darwin)
+{
+  version (X86)   version = UnsafeFiberMigration;
+  version (X86_64) version = UnsafeFiberMigration;
+}
 
 version (UnsafeFiberMigration)
 {


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

* [gcc(refs/users/iains/heads/d-for-darwin)] D, Darwin : Do not allow moving fibres between pthreads.
@ 2021-01-11 21:26 Iain D Sandoe
  0 siblings, 0 replies; 3+ messages in thread
From: Iain D Sandoe @ 2021-01-11 21:26 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:6200bafa0ef1b5e0d711a16724774b8228757d5c

commit 6200bafa0ef1b5e0d711a16724774b8228757d5c
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Thu Dec 10 14:06:07 2020 +0000

    D, Darwin : Do not allow moving fibres between pthreads.
    
    Emulated TLS targets (and, indeed some native TLS ones too)
    on GCC should not allow fibres to be moved between threads
    since the ME keeps pointers to TLS vars cached as an internal
    detail and cannot see that a function call could return on a
    different thread.

Diff:
---
 libphobos/libdruntime/core/thread.d | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libphobos/libdruntime/core/thread.d b/libphobos/libdruntime/core/thread.d
index 5381cda103b..843125831aa 100644
--- a/libphobos/libdruntime/core/thread.d
+++ b/libphobos/libdruntime/core/thread.d
@@ -5311,6 +5311,11 @@ unittest
 // Multiple threads running shared fibers
 version (PPC)   version = UnsafeFiberMigration;
 version (PPC64) version = UnsafeFiberMigration;
+version (Darwin)
+{
+  version (X86)   version = UnsafeFiberMigration;
+  version (X86_64) version = UnsafeFiberMigration;
+}
 
 version (UnsafeFiberMigration)
 {


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

* [gcc(refs/users/iains/heads/d-for-darwin)] D, Darwin : Do not allow moving fibres between pthreads.
@ 2020-12-13 17:43 Iain D Sandoe
  0 siblings, 0 replies; 3+ messages in thread
From: Iain D Sandoe @ 2020-12-13 17:43 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:f590fa6dc8f96c4d54eb0d7953e602744a141946

commit f590fa6dc8f96c4d54eb0d7953e602744a141946
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Thu Dec 10 14:06:07 2020 +0000

    D, Darwin : Do not allow moving fibres between pthreads.
    
    Emulated TLS targets (and, indeed some native TLS ones too)
    on GCC should not allow fibres to be moved between threads
    since the ME keeps pointers to TLS vars cached as an internal
    detail and cannot see that a function call could return on a
    different thread.

Diff:
---
 libphobos/libdruntime/core/thread.d | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libphobos/libdruntime/core/thread.d b/libphobos/libdruntime/core/thread.d
index 5381cda103b..843125831aa 100644
--- a/libphobos/libdruntime/core/thread.d
+++ b/libphobos/libdruntime/core/thread.d
@@ -5311,6 +5311,11 @@ unittest
 // Multiple threads running shared fibers
 version (PPC)   version = UnsafeFiberMigration;
 version (PPC64) version = UnsafeFiberMigration;
+version (Darwin)
+{
+  version (X86)   version = UnsafeFiberMigration;
+  version (X86_64) version = UnsafeFiberMigration;
+}
 
 version (UnsafeFiberMigration)
 {


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

end of thread, other threads:[~2021-01-11 21:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21 20:37 [gcc(refs/users/iains/heads/d-for-darwin)] D, Darwin : Do not allow moving fibres between pthreads Iain D Sandoe
  -- strict thread matches above, loose matches on Subject: below --
2021-01-11 21:26 Iain D Sandoe
2020-12-13 17:43 Iain D Sandoe

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 read-only IMAP folder(s) and NNTP newsgroup(s).