Re: [go-nuts] source for scheduler and gc?

2019-04-03 Thread Robert Engels
Sorry, that made no sense, since the original message was not sent to the group. Here is the link:see https://github.com/golang/go/issues/11100-Original Message-
From: Robert Engels 
Sent: Apr 3, 2019 12:36 PM
To: "Jason E. Aten" 
Cc: golang-nuts 
Subject: Re: [go-nuts] source for scheduler and gc?

The issue I linked to goes pretty in-depth on the reasons. On Apr 3, 2019, at 12:30 PM, Jason E. Aten <j.e.a...@gmail.com> wrote:Thanks Ian.On Wednesday, April 3, 2019 at 6:57:32 PM UTC+2, Ian Lance Taylor wrote:On Wed, Apr 3, 2019 at 8:34 AM Jason E. Aten <j.e...@gmail.com> wrote:
>
> Where does the source for the runtime scheduler and garbage collector live these days?

The central locations are runtime/proc.go and runtime/mgc.go.


> Wherefore, I need to locate all runtime background threads and add in a means to shut them down upon request.

That's not currently supported, but it may be possible to modify the
scheduler to do it.  There is no simple way.

Ian




-- 
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] source for scheduler and gc?

2019-04-03 Thread Robert Engels
The issue I linked to goes pretty in-depth on the reasons. 

> On Apr 3, 2019, at 12:30 PM, Jason E. Aten  wrote:
> 
> Thanks Ian.
> 
>> On Wednesday, April 3, 2019 at 6:57:32 PM UTC+2, Ian Lance Taylor wrote:
>> On Wed, Apr 3, 2019 at 8:34 AM Jason E. Aten  wrote: 
>> > 
>> > Where does the source for the runtime scheduler and garbage collector live 
>> > these days? 
>> 
>> The central locations are runtime/proc.go and runtime/mgc.go. 
>> 
>> 
>> > Wherefore, I need to locate all runtime background threads and add in a 
>> > means to shut them down upon request. 
>> 
>> That's not currently supported, but it may be possible to modify the 
>> scheduler to do it.  There is no simple way. 
>> 
>> Ian 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] source for scheduler and gc?

2019-04-03 Thread Jason E. Aten
Thanks Ian.

On Wednesday, April 3, 2019 at 6:57:32 PM UTC+2, Ian Lance Taylor wrote:
>
> On Wed, Apr 3, 2019 at 8:34 AM Jason E. Aten  > wrote: 
> > 
> > Where does the source for the runtime scheduler and garbage collector 
> live these days? 
>
> The central locations are runtime/proc.go and runtime/mgc.go. 
>
>
> > Wherefore, I need to locate all runtime background threads and add in a 
> means to shut them down upon request. 
>
> That's not currently supported, but it may be possible to modify the 
> scheduler to do it.  There is no simple way. 
>
> Ian 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] source for scheduler and gc?

2019-04-03 Thread Ian Lance Taylor
On Wed, Apr 3, 2019 at 8:34 AM Jason E. Aten  wrote:
>
> Where does the source for the runtime scheduler and garbage collector live 
> these days?

The central locations are runtime/proc.go and runtime/mgc.go.


> Wherefore, I need to locate all runtime background threads and add in a means 
> to shut them down upon request.

That's not currently supported, but it may be possible to modify the
scheduler to do it.  There is no simple way.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] source for scheduler and gc?

2019-04-03 Thread Michel Levieux
I don't know what you're trying to achieve but I think:

a. that it's not possible to have a program keep a consistent state while
enabling such behaviour
b. that there's a better way to do what you want to do

Maybe explaining (even vaguely) what your purpose is could help?

Le mer. 3 avr. 2019 à 17:34, Jason E. Aten  a écrit :

> Where does the source for the runtime scheduler and garbage collector live
> these days?
>
> Wherefore, I need to locate all runtime background threads and add in a
> means to shut them down upon request.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.