JS_ShutDown

  • Revision slug: SpiderMonkey/JSAPI_Reference/JS_ShutDown
  • Revision title: JS_ShutDown
  • Revision id: 146693
  • Created:
  • Creator: Jorend
  • Is current revision? No
  • Comment 14 words removed

Revision Content

Free all resources shared among runtimes.

Syntax

void JS_ShutDown(void);

Description

Frees all resources shared among runtimes. Call this only when no JSRuntimes exist (for example, at the end of the program, after calling JS_DestroyRuntime).

Implementation note: This cleans up memory allocated by jsdtoa.c and, in JS_THREADSAFE builds, mutexes allocated by jslock.c.

{{ LXRSearch("ident", "i", "JS_ShutDown") }}

{{ languages( { "ja": "ja/JS_ShutDown" } ) }}

Revision Source

<p>Free all resources shared among runtimes.
</p>
<h2 id="Syntax" name="Syntax"> Syntax </h2>
<pre class="eval">void <strong>JS_ShutDown</strong>(void);
</pre>
<h2 id="Description" name="Description"> Description </h2>
<p>Frees all resources shared among runtimes. Call this only when no <code>JSRuntime</code>s exist (for example, at the end of the program, after calling <code><a href="/en/SpiderMonkey/JSAPI_Reference/JS_DestroyRuntime" title="en/JS_DestroyRuntime">JS_DestroyRuntime</a></code>).
</p><p>Implementation note: This cleans up memory allocated by <code><a class="external" href="http://mxr.mozilla.org/seamonkey/source/js/src/jsdtoa.c">jsdtoa.c</a></code> and, in <code><a href="/en/SpiderMonkey/JSAPI_Reference/JS_THREADSAFE" title="en/JS_THREADSAFE">JS_THREADSAFE</a></code> builds, mutexes allocated by <code><a class="external" href="http://mxr.mozilla.org/seamonkey/source/js/src/jslock.c">jslock.c</a></code>.
</p><p>{{ LXRSearch("ident", "i", "JS_ShutDown") }}
</p> {{ languages( { "ja": "ja/JS_ShutDown" } ) }}
Revert to this revision