Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
js crashes in MarkRangeConservatively when JS_GC is called from other thread
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ankur rungta  
View profile  
 More options Aug 21 2012, 11:40 am
Newsgroups: mozilla.dev.tech.js-engine
From: Ankur rungta <ankur.run...@huawei.com>
Date: Tue, 21 Aug 2012 15:40:13 +0000
Local: Tues, Aug 21 2012 11:40 am
Subject: js crashes in MarkRangeConservatively when JS_GC is called from other thread
Hi,

I am currently integrating js 1.8.5 with our environment.
While integration when JS_GC API call is called then there is a crash in js::MarkRangeConservatively

I have written a small program in which I created a new thread and called JS_GC in that.
It was still crashing in js::MarkRangeConservatively.

Please can anyone help me to know the correct usage where can we call JS_GC in js1.8.5.

Thanks & Regards,
Ankur.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Mandelin  
View profile  
 More options Aug 28 2012, 7:51 pm
Newsgroups: mozilla.dev.tech.js-engine
From: Dave Mandelin <dmande...@mozilla.com>
Date: Tue, 28 Aug 2012 16:51:46 -0700 (PDT)
Local: Tues, Aug 28 2012 7:51 pm
Subject: Re: js crashes in MarkRangeConservatively when JS_GC is called from other thread

There aren't particularly any restrictions on when JS_GC can be called--SpiderMonkey can internally trigger GCs all over the place. Maybe we can help you if you provide a reduced test case?

Dave


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Mandelin  
View profile  
 More options Aug 28 2012, 7:51 pm
Newsgroups: mozilla.dev.tech.js-engine
From: Dave Mandelin <dmande...@mozilla.com>
Date: Tue, 28 Aug 2012 16:51:46 -0700 (PDT)
Local: Tues, Aug 28 2012 7:51 pm
Subject: Re: js crashes in MarkRangeConservatively when JS_GC is called from other thread

There aren't particularly any restrictions on when JS_GC can be called--SpiderMonkey can internally trigger GCs all over the place. Maybe we can help you if you provide a reduced test case?

Dave


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
unknownan...@gmail.com  
View profile  
 More options Aug 29 2012, 6:35 am
Newsgroups: mozilla.dev.tech.js-engine
From: unknownan...@gmail.com
Date: Wed, 29 Aug 2012 03:35:31 -0700 (PDT)
Local: Wed, Aug 29 2012 6:35 am
Subject: Re: js crashes in MarkRangeConservatively when JS_GC is called from other thread
Hi,

The problem that was happening is that we build js libs with single thread and we were using 1 thread to create the context and the global object and the other thread to call GC.
When JS_THREADSAFE is not used while building js in case we use 2 threads then it will result into the above crash.

Now I am using JS_THREADSAFE always while building

Thanks,
Ankur.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Mandelin  
View profile  
 More options Aug 29 2012, 2:26 pm
Newsgroups: mozilla.dev.tech.js-engine
From: Dave Mandelin <dmande...@mozilla.com>
Date: Wed, 29 Aug 2012 11:26:46 -0700 (PDT)
Local: Wed, Aug 29 2012 2:26 pm
Subject: Re: js crashes in MarkRangeConservatively when JS_GC is called from other thread

Cool. Note that in newer versions (Firefox 12 and later), JSRuntimes are single-threaded, so working with objects on one thread and calling GC on another will not work.

Dave


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Mandelin  
View profile  
 More options Aug 29 2012, 2:26 pm
Newsgroups: mozilla.dev.tech.js-engine
From: Dave Mandelin <dmande...@mozilla.com>
Date: Wed, 29 Aug 2012 11:26:46 -0700 (PDT)
Local: Wed, Aug 29 2012 2:26 pm
Subject: Re: js crashes in MarkRangeConservatively when JS_GC is called from other thread

Cool. Note that in newer versions (Firefox 12 and later), JSRuntimes are single-threaded, so working with objects on one thread and calling GC on another will not work.

Dave


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »